mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-11 15:48:05 +00:00
[Qt] Fix No such slot UnitDisplayStatusBarControl::onDisplayUnitsClicked
This commit is contained in:
parent
29ef389514
commit
e3496da730
@ -1012,7 +1012,7 @@ UnitDisplayStatusBarControl::UnitDisplayStatusBarControl():QLabel()
|
|||||||
setToolTip(tr("Unit to show amounts in. Click to select another unit."));
|
setToolTip(tr("Unit to show amounts in. Click to select another unit."));
|
||||||
}
|
}
|
||||||
|
|
||||||
/** So that it responds to left-button clicks */
|
/** So that it responds to button clicks */
|
||||||
void UnitDisplayStatusBarControl::mousePressEvent(QMouseEvent *event)
|
void UnitDisplayStatusBarControl::mousePressEvent(QMouseEvent *event)
|
||||||
{
|
{
|
||||||
onDisplayUnitsClicked(event->pos());
|
onDisplayUnitsClicked(event->pos());
|
||||||
@ -1029,10 +1029,6 @@ void UnitDisplayStatusBarControl::createContextMenu()
|
|||||||
menu->addAction(menuAction);
|
menu->addAction(menuAction);
|
||||||
}
|
}
|
||||||
connect(menu,SIGNAL(triggered(QAction*)),this,SLOT(onMenuSelection(QAction*)));
|
connect(menu,SIGNAL(triggered(QAction*)),this,SLOT(onMenuSelection(QAction*)));
|
||||||
|
|
||||||
// what happens on right click.
|
|
||||||
setContextMenuPolicy(Qt::CustomContextMenu);
|
|
||||||
connect(this,SIGNAL(customContextMenuRequested(const QPoint&)),this,SLOT(onDisplayUnitsClicked(const QPoint&)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Lets the control know about the Options Model (and its signals) */
|
/** Lets the control know about the Options Model (and its signals) */
|
||||||
|
Loading…
Reference in New Issue
Block a user