Skip to content

Commit 9a0e416

Browse files
author
Ender ÇELİK
committed
The interfaces have been redesigned
1 parent 7b2225f commit 9a0e416

23 files changed

+653
-183
lines changed

.gitignore

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Prerequisites
2+
*.d
3+
4+
# Compiled Object files
5+
*.slo
6+
*.lo
7+
*.o
8+
*.obj
9+
10+
# Precompiled Headers
11+
*.gch
12+
*.pch
13+
14+
# Compiled Dynamic libraries
15+
*.so
16+
*.dylib
17+
*.dll
18+
19+
# Fortran module files
20+
*.mod
21+
*.smod
22+
23+
# Compiled Static libraries
24+
*.lai
25+
*.la
26+
*.a
27+
*.lib
28+
29+
# Executables
30+
*.exe
31+
*.out
32+
*.app

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Ender ÇELİK
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

banking_automation.pro

+11
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,14 @@ FORMS += \
2828
qnx: target.path = /tmp/$${TARGET}/bin
2929
else: unix:!android: target.path = /opt/$${TARGET}/bin
3030
!isEmpty(target.path): INSTALLS += target
31+
32+
RESOURCES += \
33+
res/res.qrc \
34+
res/resources.qrc
35+
36+
DISTFILES += \
37+
res/bank_icon.png \
38+
res/dark_blur_wallpaper.jpg \
39+
res/dollar_design.png \
40+
res/github.png \
41+
res/interface_background3.jpg

banking_automation.pro.user

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!DOCTYPE QtCreatorProject>
3-
<!-- Written by QtCreator 10.0.2, 2023-07-11T11:33:36. -->
3+
<!-- Written by QtCreator 10.0.2, 2023-07-12T00:17:16. -->
44
<qtcreator>
55
<data>
66
<variable>EnvironmentId</variable>

dark_blur_wallpaper.jpg

107 KB
Loading

database.cpp

+12-11
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
1+
// https://github.com/Enderceliik
2+
// Ender CELIK
3+
14
#include "database.h"
25
QSqlDatabase database::sqliteDatabase;
36
database::database() {
4-
qDebug() << "constructer çalıştırma denemesi";
57
if (!sqliteDatabase.isValid()) {
68
sqliteDatabase = QSqlDatabase::addDatabase("QSQLITE");
79
sqliteDatabase.setDatabaseName("banking_automation_sqlite_database.db");
810

911
if (!sqliteDatabase.open()) {
10-
qDebug() << "Veritabanı açılamadı.";
12+
qDebug() << "The database could not be opened.";
1113
}
1214
}
1315
}
1416
database::~database() {
15-
qDebug() << "Deconstructor çalışıyor.";
1617
sqliteDatabase.close();
1718
}
1819
void database::initial_database_definition()
@@ -61,8 +62,8 @@ void database::initial_database_definition()
6162
.arg("159*")
6263
.arg("Ender")
6364
.arg("Çelik")
64-
.arg(1600.0)
65-
.arg("TR 296143")
65+
.arg(19500)
66+
.arg("TR 29296161")
6667
.arg(0);
6768
query.prepare(queryString);
6869
if(query.exec())
@@ -79,8 +80,8 @@ void database::initial_database_definition()
7980
.arg("159-")
8081
.arg("Lokman")
8182
.arg("Pehlivan")
82-
.arg(2600.75)
83-
.arg("TR 424242")
83+
.arg(42000)
84+
.arg("TR 42424242")
8485
.arg(0);
8586
query.prepare(queryString);
8687
if(query.exec())
@@ -97,13 +98,13 @@ void database::initial_database_definition()
9798
.arg("654")
9899
.arg("Ahmet")
99100
.arg("Alkaç")
100-
.arg(8500.75)
101-
.arg("TR 262629")
101+
.arg(22000)
102+
.arg("TR 26262929")
102103
.arg(0);
103104
query.prepare(queryString);
104105
if(query.exec())
105106
{
106-
qDebug() << "users table INSERT 2 succesfully!";
107+
qDebug() << "users table INSERT 3 succesfully!";
107108
}
108109
}
109110

@@ -169,7 +170,7 @@ QSqlQueryModel* database::database_query(QString parameter)
169170
if (!sqliteDatabase.isOpen()) {
170171
sqliteDatabase.open();
171172
}
172-
queryString = QString("SELECT * FROM transactions WHERE senderIban = '%1' OR receivingPartyIban = '%2'").arg(parameter, parameter);
173+
queryString = QString("SELECT transactionDate, amountTransferred, senderIban, receivingPartyIban FROM transactions WHERE senderIban = '%1' OR receivingPartyIban = '%2'").arg(parameter, parameter);
173174
QSqlQueryModel *model = new QSqlQueryModel();
174175
model->setQuery(queryString);
175176
return model;

interface.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// https://github.com/Enderceliik
2+
// Ender CELIK
3+
14
#include "interface.h"
25
#include "ui_interface.h"
36
#include "database.h"
@@ -32,7 +35,7 @@ void InterFace::load_interface(int userID)
3235
interfaceInfoMap.insert("Iban",query.value(5).toString());
3336
interfaceInfoMap.insert("userType",query.value(6).toString());
3437

35-
ui->balance_label->setText(interfaceInfoMap.value("balance").toString());
38+
ui->balance_label->setText(interfaceInfoMap.value("balance").toString() + "");
3639
ui->Iban_label->setText(interfaceInfoMap.value("Iban").toString());
3740
ui->name_surname_label->setText(interfaceInfoMap.value("name").toString()+" "+interfaceInfoMap.value("surname").toString());
3841

0 commit comments

Comments
 (0)