Porbiert mal F2 aus ;)

This commit is contained in:
doitux
2007-01-20 17:49:33 +00:00
parent 66820f3d3f
commit 64dcce5b65
3 changed files with 13 additions and 2 deletions
+11 -1
View File
@@ -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(); }
}
+1
View File
@@ -157,6 +157,7 @@ public slots:
void breakButtonClicked();
void keyPressEvent ( QKeyEvent * event );
void switchToolBox();
private:
+1 -1
View File
@@ -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>