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->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_formatBox_currentIndexChanged(int index);
|
||||
void on_imageFormatBox_currentIndexChanged(int index);
|
||||
void on_actionStart_triggered();
|
||||
void on_actionStop_triggered();
|
||||
|
||||
void on_pushButton_clicked();
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>483</width>
|
||||
<height>478</height>
|
||||
<height>512</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
@ -180,9 +180,17 @@
|
||||
</property>
|
||||
<addaction name="actionColor_Picker"/>
|
||||
</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="menuScreenshot"/>
|
||||
<addaction name="menuUtilities"/>
|
||||
<addaction name="menuRecording"/>
|
||||
</widget>
|
||||
<widget class="QStatusBar" name="statusBar"/>
|
||||
<action name="actionQuit">
|
||||
@ -205,6 +213,16 @@
|
||||
<string>&Color Picker</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionStart">
|
||||
<property name="text">
|
||||
<string>Start</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionStop">
|
||||
<property name="text">
|
||||
<string>Stop</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<layoutdefault spacing="6" margin="11"/>
|
||||
<resources/>
|
||||
|
Loading…
Reference in New Issue
Block a user