mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Clean up MacroSegmentList
This commit is contained in:
parent
90ebf0e0f8
commit
f8b2dea270
|
|
@ -75,7 +75,7 @@ void MacroSegmentList::SetHelpMsgVisible(bool visible)
|
|||
_helpMsg->setVisible(visible);
|
||||
}
|
||||
|
||||
void MacroSegmentList::Insert(int idx, QWidget *widget)
|
||||
void MacroSegmentList::Insert(int idx, MacroSegmentEdit *widget)
|
||||
{
|
||||
widget->installEventFilter(this);
|
||||
_contentLayout->insertWidget(idx, widget);
|
||||
|
|
@ -135,8 +135,6 @@ void MacroSegmentList::SetSelection(int idx)
|
|||
|
||||
bool MacroSegmentList::eventFilter(QObject *object, QEvent *event)
|
||||
{
|
||||
if (event->type() == QEvent::MouseButtonPress) {
|
||||
}
|
||||
switch (event->type()) {
|
||||
case QEvent::MouseButtonPress:
|
||||
mousePressEvent(static_cast<QMouseEvent *>(event));
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ public:
|
|||
void SetHelpMsg(const QString &msg);
|
||||
void SetHelpMsgVisible(bool visible);
|
||||
MacroSegmentEdit *WidgetAt(int idx);
|
||||
void Insert(int idx, QWidget *widget);
|
||||
void Insert(int idx, MacroSegmentEdit *widget);
|
||||
void Add(QWidget *widget);
|
||||
void Remove(int idx);
|
||||
void Clear(int idx = 0); // Clear all elements >= idx
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user