added about cutter at openfile dialog (#140)

This commit is contained in:
Matteo 2017-12-04 21:38:09 +00:00 committed by xarkes
parent 6c6f743f97
commit e52468243d
3 changed files with 29 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#include "OptionsDialog.h" #include "OptionsDialog.h"
#include "dialogs/CreateNewDialog.h" #include "dialogs/CreateNewDialog.h"
#include "dialogs/NewFileDialog.h" #include "dialogs/NewFileDialog.h"
#include "dialogs/AboutDialog.h"
#include "ui_NewfileDialog.h" #include "ui_NewfileDialog.h"
#include <QFileDialog> #include <QFileDialog>
@ -172,6 +173,12 @@ void NewFileDialog::on_cancelButton_clicked()
close(); close();
} }
void NewFileDialog::on_aboutButton_clicked()
{
AboutDialog *a = new AboutDialog(this);
a->open();
}
void NewFileDialog::on_actionRemove_item_triggered() void NewFileDialog::on_actionRemove_item_triggered()
{ {
// Remove selected item from recents list // Remove selected item from recents list
@ -286,7 +293,7 @@ void NewFileDialog::loadFile(const QString &filename)
if (!checkfile.exists() || !checkfile.isFile()) if (!checkfile.exists() || !checkfile.isFile())
{ {
QMessageBox msgBox(this); QMessageBox msgBox(this);
msgBox.setText(tr("Select a new program or a previous one\nbefore continue")); msgBox.setText(tr("Select a new program or a previous one\nbefore continuing"));
msgBox.exec(); msgBox.exec();
} }
else else

View File

@ -27,6 +27,7 @@ private slots:
void on_loadProjectButton_clicked(); void on_loadProjectButton_clicked();
void on_cancelButton_clicked(); void on_cancelButton_clicked();
void on_aboutButton_clicked();
void on_recentsListWidget_itemClicked(QListWidgetItem *item); void on_recentsListWidget_itemClicked(QListWidgetItem *item);
void on_recentsListWidget_itemDoubleClicked(QListWidgetItem *item); void on_recentsListWidget_itemDoubleClicked(QListWidgetItem *item);

View File

@ -415,6 +415,26 @@
</property> </property>
</widget> </widget>
</item> </item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>300</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="aboutButton">
<property name="text">
<string>About</string>
</property>
</widget>
</item>
<item> <item>
<spacer name="horizontalSpacer"> <spacer name="horizontalSpacer">
<property name="orientation"> <property name="orientation">