Browse Source

Merge pull request #4519

e3496da [Qt] Fix No such slot UnitDisplayStatusBarControl::onDisplayUnitsClicked (Cozz Lovan)
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
df2e6928fa
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 6
      src/qt/bitcoingui.cpp

6
src/qt/bitcoingui.cpp

@ -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…
Cancel
Save