Porbiert mal F2 aus ;)
This commit is contained in:
@@ -1368,6 +1368,16 @@ void mainWindowImpl::breakButtonClicked() {
|
||||
|
||||
void mainWindowImpl::keyPressEvent ( QKeyEvent * event ) {
|
||||
|
||||
// cout << event->key()/*.toStdString()*/ << endl;
|
||||
// cout << event->key() << endl;
|
||||
|
||||
if (event->key() == 16777265) { switchToolBox(); }
|
||||
|
||||
}
|
||||
|
||||
void mainWindowImpl::switchToolBox() {
|
||||
|
||||
if (groupBox_tools->isHidden()) { groupBox_tools->show(); }
|
||||
else { groupBox_tools->hide(); }
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -157,6 +157,7 @@ public slots:
|
||||
void breakButtonClicked();
|
||||
|
||||
void keyPressEvent ( QKeyEvent * event );
|
||||
void switchToolBox();
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -229,7 +229,7 @@
|
||||
<item row="2" column="0" >
|
||||
<widget class="QCheckBox" name="checkBox_showToolbox" >
|
||||
<property name="text" >
|
||||
<string>Show Toolbox</string>
|
||||
<string>Show Toolbox (F2 to switch on/off)</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user