Skip to content

Commit eabb4b9

Browse files
committed
fixed small bugs
1 parent f4e31d8 commit eabb4b9

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
2. Download & Install **[Qt5][4]**
2525
3. ```sh
2626
cmake -DCMAKE_BUILD_TYPE={type} -DCMAKE_PREFIX_PATH=path/to/Qt5 -G {generator} -B ./cmake-build-{type}
27-
cmake --build ./cmake-build-debug --target TIP -j 14
27+
cmake --build ./cmake-build-{type} --target TIP -j 14
2828
```
2929

3030
#### **Deployment**
@@ -33,7 +33,7 @@
3333
3. To activate deployment mode, add the following flag to the CMake configuration:
3434
```sh
3535
cmake -DCMAKE_BUILD_TYPE={type} -DCMAKE_PREFIX_PATH=path/to/Qt5 "-DDEPLOY_DEPENDENCY=\"path/to/idp.iss\"" -G {generator} -B ./cmake-build-{type}
36-
cmake --build ./cmake-build-debug --target TIP -j 14
36+
cmake --build ./cmake-build-{type} --target TIP -j 14
3737
```
3838
or run [windows_deploy.bat][8] after building the project and enter `"path/to/idp.iss"` as an argument.
3939

source/interfaces/mainwindow/mainwindow.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,11 +346,16 @@ void MainWindow::on_insert_same_records_triggered() {
346346
int amount;
347347
if (RecordsAmountForm(amount, this).exec() == QDialog::Accepted) {
348348
QSqlQuery query(database_.db);
349+
ui->progress_bar->setMaximum(amount - 1);
350+
ui->progress_bar->setVisible(true);
349351
for (int i = 0; i < amount; ++i) {
350352
query.exec(QString("INSERT INTO %1.clients (name, phone_number, status) VALUES ('', '', false);").arg(
351353
database_.schema));
354+
ui->progress_bar->setValue(i);
355+
QCoreApplication::processEvents();
352356
}
353357
table_model_->select();
358+
ui->progress_bar->setVisible(false);
354359
}
355360
}
356361
}

source/ui/mainwindow.ui

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
</property>
4040
<addaction name="save_image"/>
4141
<addaction name="save_some_images"/>
42-
<addaction name="save_some_items"/>
4342
<addaction name="separator"/>
4443
<addaction name="copy"/>
4544
<addaction name="print"/>

0 commit comments

Comments
 (0)