Add open printer tray to tools dropdown
This commit is contained in:
@@ -2270,6 +2270,13 @@ MainWindow::on_actionOpen_screenshots_folder_triggered()
|
||||
QDesktopServices::openUrl(QUrl(QString("file:///") + usr_path + QString("/screenshots/")));
|
||||
}
|
||||
|
||||
void
|
||||
MainWindow::on_actionOpen_printer_tray_triggered()
|
||||
{
|
||||
static_cast<void>(QDir(QString(usr_path) + QString("/printer/")).mkpath("."));
|
||||
QDesktopServices::openUrl(QUrl(QString("file:///") + usr_path + QString("/printer/")));
|
||||
}
|
||||
|
||||
void
|
||||
MainWindow::on_actionApply_fullscreen_stretch_mode_when_maximized_triggered(bool checked)
|
||||
{
|
||||
|
||||
@@ -163,6 +163,8 @@ private slots:
|
||||
|
||||
void on_actionOpen_screenshots_folder_triggered();
|
||||
|
||||
void on_actionOpen_printer_tray_triggered();
|
||||
|
||||
void on_actionApply_fullscreen_stretch_mode_when_maximized_triggered(bool checked);
|
||||
|
||||
private:
|
||||
|
||||
@@ -111,6 +111,7 @@
|
||||
<addaction name="actionMCA_devices"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionOpen_screenshots_folder"/>
|
||||
<addaction name="actionOpen_printer_tray"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menuView">
|
||||
<property name="title">
|
||||
@@ -848,6 +849,11 @@
|
||||
<string>Open screenshots &folder...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionOpen_printer_tray">
|
||||
<property name="text">
|
||||
<string>Open &printer tray...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionApply_fullscreen_stretch_mode_when_maximized">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
|
||||
Reference in New Issue
Block a user