Add context menus for recording
This commit is contained in:
parent
9fddb5a678
commit
999e0e3511
@ -246,3 +246,11 @@ void MainWindow::on_pushButton_clicked() {
|
|||||||
a->setAttribute(Qt::WA_DeleteOnClose);
|
a->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
a->show();
|
a->show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_actionStart_triggered() {
|
||||||
|
rec();
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_actionStop_triggered() {
|
||||||
|
controller->end();
|
||||||
|
}
|
||||||
|
@ -35,6 +35,8 @@ private slots:
|
|||||||
void on_captureCursor_clicked(bool checked);
|
void on_captureCursor_clicked(bool checked);
|
||||||
void on_formatBox_currentIndexChanged(int index);
|
void on_formatBox_currentIndexChanged(int index);
|
||||||
void on_imageFormatBox_currentIndexChanged(int index);
|
void on_imageFormatBox_currentIndexChanged(int index);
|
||||||
|
void on_actionStart_triggered();
|
||||||
|
void on_actionStop_triggered();
|
||||||
|
|
||||||
void on_pushButton_clicked();
|
void on_pushButton_clicked();
|
||||||
|
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>483</width>
|
<width>483</width>
|
||||||
<height>478</height>
|
<height>512</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -180,9 +180,17 @@
|
|||||||
</property>
|
</property>
|
||||||
<addaction name="actionColor_Picker"/>
|
<addaction name="actionColor_Picker"/>
|
||||||
</widget>
|
</widget>
|
||||||
|
<widget class="QMenu" name="menuRecording">
|
||||||
|
<property name="title">
|
||||||
|
<string>Recording</string>
|
||||||
|
</property>
|
||||||
|
<addaction name="actionStart"/>
|
||||||
|
<addaction name="actionStop"/>
|
||||||
|
</widget>
|
||||||
<addaction name="menuFile"/>
|
<addaction name="menuFile"/>
|
||||||
<addaction name="menuScreenshot"/>
|
<addaction name="menuScreenshot"/>
|
||||||
<addaction name="menuUtilities"/>
|
<addaction name="menuUtilities"/>
|
||||||
|
<addaction name="menuRecording"/>
|
||||||
</widget>
|
</widget>
|
||||||
<widget class="QStatusBar" name="statusBar"/>
|
<widget class="QStatusBar" name="statusBar"/>
|
||||||
<action name="actionQuit">
|
<action name="actionQuit">
|
||||||
@ -205,6 +213,16 @@
|
|||||||
<string>&Color Picker</string>
|
<string>&Color Picker</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionStart">
|
||||||
|
<property name="text">
|
||||||
|
<string>Start</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="actionStop">
|
||||||
|
<property name="text">
|
||||||
|
<string>Stop</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<layoutdefault spacing="6" margin="11"/>
|
<layoutdefault spacing="6" margin="11"/>
|
||||||
<resources/>
|
<resources/>
|
||||||
|
Loading…
Reference in New Issue
Block a user