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);
|
&MainWindow::onCancelAllArticlesButtonClicked);
|
||||||
connect(static_cast<BasketModel*>(ui_.basketView->model()), &BasketModel::basketDataChanged,
|
connect(static_cast<BasketModel*>(ui_.basketView->model()), &BasketModel::basketDataChanged,
|
||||||
static_cast<SaleModel*>(ui_.salesView->model()), &SaleModel::onBasketDataChanged);
|
static_cast<SaleModel*>(ui_.salesView->model()), &SaleModel::onBasketDataChanged);
|
||||||
|
connect(ui_.aboutQtAction, &QAction::triggered, this, &MainWindow::onAboutQt);
|
||||||
}
|
}
|
||||||
|
|
||||||
void MainWindow::onActionEditSellerTriggered()
|
void MainWindow::onActionEditSellerTriggered()
|
||||||
|
@ -205,3 +206,5 @@ void MainWindow::onCancelAllArticlesButtonClicked([[maybe_unused]] bool checked)
|
||||||
|
|
||||||
dynamic_cast<BasketModel*>(ui_.basketView->model())->cancelSale();
|
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 onCancelArticleButtonClicked(bool checked);
|
||||||
void onCancelSaleButtonClicked(bool checked);
|
void onCancelSaleButtonClicked(bool checked);
|
||||||
void onCancelAllArticlesButtonClicked(bool checked);
|
void onCancelAllArticlesButtonClicked(bool checked);
|
||||||
|
void onAboutQt();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void onActionEditSellerTriggered();
|
void onActionEditSellerTriggered();
|
||||||
|
|
|
@ -385,14 +385,14 @@ drucken</string>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>817</width>
|
<width>817</width>
|
||||||
<height>24</height>
|
<height>14</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QMenu" name="menu_Datei">
|
<widget class="QMenu" name="menu_Datei">
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>&Datei</string>
|
<string>&Datei</string>
|
||||||
</property>
|
</property>
|
||||||
<addaction name="actionEinstellungen"/>
|
<addaction name="configAction"/>
|
||||||
<addaction name="separator"/>
|
<addaction name="separator"/>
|
||||||
<addaction name="actionQuit"/>
|
<addaction name="actionQuit"/>
|
||||||
</widget>
|
</widget>
|
||||||
|
@ -406,7 +406,8 @@ drucken</string>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string>&Hilfe</string>
|
<string>&Hilfe</string>
|
||||||
</property>
|
</property>
|
||||||
<addaction name="action_ber"/>
|
<addaction name="aboutAction"/>
|
||||||
|
<addaction name="aboutQtAction"/>
|
||||||
</widget>
|
</widget>
|
||||||
<addaction name="menu_Datei"/>
|
<addaction name="menu_Datei"/>
|
||||||
<addaction name="menu_Edit"/>
|
<addaction name="menu_Edit"/>
|
||||||
|
@ -427,14 +428,19 @@ drucken</string>
|
||||||
<string>&Bearbeiten</string>
|
<string>&Bearbeiten</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="actionEinstellungen">
|
<action name="configAction">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Einstellungen...</string>
|
<string>Einstellungen</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
<action name="action_ber">
|
<action name="aboutAction">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Über...</string>
|
<string>Über</string>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
|
<action name="aboutQtAction">
|
||||||
|
<property name="text">
|
||||||
|
<string>Über Qt</string>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
Loading…
Reference in a new issue