about qt dialog added
This commit is contained in:
parent
68591c415e
commit
efb1f3ffbf
3 changed files with 18 additions and 8 deletions
|
@ -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()
|
||||
|
@ -204,4 +205,6 @@ void MainWindow::onCancelAllArticlesButtonClicked([[maybe_unused]] bool checked)
|
|||
return;
|
||||
|
||||
dynamic_cast<BasketModel*>(ui_.basketView->model())->cancelSale();
|
||||
}
|
||||
}
|
||||
|
||||
void MainWindow::onAboutQt() { QMessageBox::aboutQt(this); }
|
|
@ -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();
|
||||
|
|
|
@ -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>&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>&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>&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>
|
||||
|
|
Loading…
Reference in a new issue