Browse Source

Add context menus for recording

tags/v5.0.0
ArsenArsen 5 years ago
parent
commit
999e0e3511
  1. 8
      mainwindow.cpp
  2. 2
      mainwindow.hpp
  3. 20
      mainwindow.ui

8
mainwindow.cpp

@ -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();
}

2
mainwindow.hpp

@ -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();

20
mainwindow.ui

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