Compare commits
No commits in common. "715c8252d87b06700e202f729efce597231a61b8" and "cdc737a823284decafb03cd222f0db0375c79665" have entirely different histories.
715c8252d8
...
cdc737a823
5 changed files with 6 additions and 40 deletions
Binary file not shown.
Binary file not shown.
|
@ -76,8 +76,6 @@ MainWindow::MainWindow()
|
|||
&MainWindow::onExportSalesJsonActionTriggered);
|
||||
connect(ui_.importSalesJsonAction, &QAction::triggered, this,
|
||||
&MainWindow::onImportSalesJsonActionTriggered);
|
||||
|
||||
readGeometry();
|
||||
}
|
||||
|
||||
void MainWindow::onActionEditSellerTriggered()
|
||||
|
@ -355,29 +353,3 @@ void MainWindow::onImportSalesJsonActionTriggered()
|
|||
}
|
||||
setSaleModel();
|
||||
}
|
||||
|
||||
void MainWindow::writeGeometry()
|
||||
{
|
||||
QSettings settings;
|
||||
|
||||
settings.beginGroup("mainwindow");
|
||||
settings.setValue("size", size());
|
||||
settings.setValue("pos", pos());
|
||||
settings.endGroup();
|
||||
}
|
||||
|
||||
void MainWindow::readGeometry()
|
||||
{
|
||||
QSettings settings;
|
||||
|
||||
settings.beginGroup("mainwindow");
|
||||
resize(settings.value("size", QSize(800, 600)).toSize());
|
||||
move(settings.value("pos", QPoint(200, 200)).toPoint());
|
||||
settings.endGroup();
|
||||
}
|
||||
|
||||
void MainWindow::closeEvent(QCloseEvent* event)
|
||||
{
|
||||
writeGeometry();
|
||||
event->accept();
|
||||
}
|
|
@ -6,7 +6,6 @@
|
|||
#include <marketplace.h>
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QtGui/QCloseEvent>
|
||||
|
||||
#include <memory>
|
||||
|
||||
|
@ -30,9 +29,6 @@ class MainWindow : public QMainWindow
|
|||
void onAboutQt();
|
||||
void onAbout();
|
||||
|
||||
protected:
|
||||
virtual void closeEvent(QCloseEvent* event) override;
|
||||
|
||||
private:
|
||||
void onActionEditSellerTriggered();
|
||||
void onSellerNoEditCheckSellerNo();
|
||||
|
@ -43,8 +39,6 @@ class MainWindow : public QMainWindow
|
|||
void onExportSalesJsonActionTriggered();
|
||||
void onImportSalesJsonActionTriggered();
|
||||
void setSaleModel();
|
||||
void writeGeometry();
|
||||
void readGeometry();
|
||||
|
||||
Ui::MainWindow ui_;
|
||||
std::unique_ptr<Marketplace> marketplace_;
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
</font>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Geben Sie hier die Verkäufernummer ein.</string>
|
||||
<string>Geben Sie hier die Verkäufernummer ein</string>
|
||||
</property>
|
||||
<property name="statusTip">
|
||||
<string>Geben Sie hier die Verkäufernummer ein</string>
|
||||
|
@ -471,27 +471,27 @@ drucken</string>
|
|||
</action>
|
||||
<action name="exportSellerJsonAction">
|
||||
<property name="text">
|
||||
<string>Exportieren für andere Kasse (JSON)</string>
|
||||
<string>Exportieren (JSON)</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="importSellerExcelAction">
|
||||
<property name="text">
|
||||
<string>Aus Excel-Datei (initial)</string>
|
||||
<string>Aus Excel-Datei</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="importSellerJsonAction">
|
||||
<property name="text">
|
||||
<string>Aus JSON-Datei (von anderer Kasse)</string>
|
||||
<string>Aus JSON-Datei</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="exportSalesJsonAction">
|
||||
<property name="text">
|
||||
<string>Exportieren für andere Kasse (JSON)</string>
|
||||
<string>Exportieren (JSON)</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="importSalesJsonAction">
|
||||
<property name="text">
|
||||
<string>Importieren von anderer Kasse (JSON)</string>
|
||||
<string>Importieren (JSON)</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
|
|
Loading…
Reference in a new issue