about qt dialog added

This commit is contained in:
Martin Brodbeck 2018-07-29 09:56:37 +02:00
parent 68591c415e
commit efb1f3ffbf
3 changed files with 18 additions and 8 deletions

View file

@ -46,6 +46,7 @@ MainWindow::MainWindow()
&MainWindow::onCancelAllArticlesButtonClicked);
connect(static_cast<BasketModel*>(ui_.basketView->model()), &BasketModel::basketDataChanged,
static_cast<SaleModel*>(ui_.salesView->model()), &SaleModel::onBasketDataChanged);
connect(ui_.aboutQtAction, &QAction::triggered, this, &MainWindow::onAboutQt);
}
void MainWindow::onActionEditSellerTriggered()
@ -205,3 +206,5 @@ void MainWindow::onCancelAllArticlesButtonClicked([[maybe_unused]] bool checked)
dynamic_cast<BasketModel*>(ui_.basketView->model())->cancelSale();
}
void MainWindow::onAboutQt() { QMessageBox::aboutQt(this); }

View file

@ -25,6 +25,7 @@ class MainWindow : public QMainWindow
void onCancelArticleButtonClicked(bool checked);
void onCancelSaleButtonClicked(bool checked);
void onCancelAllArticlesButtonClicked(bool checked);
void onAboutQt();
private:
void onActionEditSellerTriggered();

View file

@ -385,14 +385,14 @@ drucken</string>
<x>0</x>
<y>0</y>
<width>817</width>
<height>24</height>
<height>14</height>
</rect>
</property>
<widget class="QMenu" name="menu_Datei">
<property name="title">
<string>&amp;Datei</string>
</property>
<addaction name="actionEinstellungen"/>
<addaction name="configAction"/>
<addaction name="separator"/>
<addaction name="actionQuit"/>
</widget>
@ -406,7 +406,8 @@ drucken</string>
<property name="title">
<string>&amp;Hilfe</string>
</property>
<addaction name="action_ber"/>
<addaction name="aboutAction"/>
<addaction name="aboutQtAction"/>
</widget>
<addaction name="menu_Datei"/>
<addaction name="menu_Edit"/>
@ -427,14 +428,19 @@ drucken</string>
<string>&amp;Bearbeiten</string>
</property>
</action>
<action name="actionEinstellungen">
<action name="configAction">
<property name="text">
<string>Einstellungen...</string>
<string>Einstellungen</string>
</property>
</action>
<action name="action_ber">
<action name="aboutAction">
<property name="text">
<string>Über...</string>
<string>Über</string>
</property>
</action>
<action name="aboutQtAction">
<property name="text">
<string>Über Qt</string>
</property>
</action>
</widget>