Merge branch 'master' of https://git.bukova.info/repos/git/prodejna
This commit is contained in:
@@ -5,5 +5,6 @@
|
||||
<file>style.css</file>
|
||||
<file>icons/settings.svg</file>
|
||||
<file>translations/prodejna_cs_CZ.qm</file>
|
||||
<file>icons/shop.ico</file>
|
||||
</qresource>
|
||||
</RCC>
|
||||
|
||||
@@ -18,6 +18,8 @@ win32 {
|
||||
INCLUDEPATH += d:/prac/odb/libodb-qt-2.4.0
|
||||
INCLUDEPATH += d:/prac/odb/libodb-sqlite-2.4.0
|
||||
INCLUDEPATH += d:/prac/odb/sqlite
|
||||
|
||||
RC_FILE = shop.rc
|
||||
}
|
||||
|
||||
SOURCES += main.cpp\
|
||||
@@ -59,4 +61,5 @@ RESOURCES += \
|
||||
|
||||
TRANSLATIONS = translations/prodejna_cz.ts
|
||||
|
||||
DISTFILES +=
|
||||
DISTFILES += \
|
||||
shop.rc
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
@@ -59,7 +59,7 @@
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QWidget" name="widget" native="true">
|
||||
<widget class="QWidget" name="widget1" native="true">
|
||||
<layout class="QVBoxLayout" name="verticalLayout_2">
|
||||
<item>
|
||||
<widget class="QWidget" name="widget_2" native="true">
|
||||
|
||||
@@ -13,6 +13,10 @@
|
||||
<property name="windowTitle">
|
||||
<string>MainWindow</string>
|
||||
</property>
|
||||
<property name="windowIcon">
|
||||
<iconset resource="appRc.qrc">
|
||||
<normaloff>:/icons/shop.ico</normaloff>:/icons/shop.ico</iconset>
|
||||
</property>
|
||||
<widget class="QWidget" name="centralWidget">
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<property name="spacing">
|
||||
@@ -56,12 +60,12 @@
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>1000</width>
|
||||
<height>21</height>
|
||||
<height>19</height>
|
||||
</rect>
|
||||
</property>
|
||||
<widget class="QMenu" name="menuFile">
|
||||
<property name="title">
|
||||
<string>File</string>
|
||||
<string>Fi&le</string>
|
||||
</property>
|
||||
<addaction name="actionOpen_database"/>
|
||||
<addaction name="actionLogin"/>
|
||||
@@ -83,12 +87,12 @@
|
||||
<widget class="QStatusBar" name="statusBar"/>
|
||||
<action name="actionExit">
|
||||
<property name="text">
|
||||
<string>Exit</string>
|
||||
<string>&Exit</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionOpen_database">
|
||||
<property name="text">
|
||||
<string>Open database...</string>
|
||||
<string>&Open database...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLogin">
|
||||
@@ -97,7 +101,7 @@
|
||||
<normaloff>:/icons/login_32.png</normaloff>:/icons/login_32.png</iconset>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Login...</string>
|
||||
<string>&Login...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSettings">
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
@@ -0,0 +1 @@
|
||||
IDI_ICON1 ICON DISCARDABLE "shop.ico"
|
||||
@@ -17,7 +17,7 @@
|
||||
<item>
|
||||
<widget class="QTabWidget" name="tabWidget">
|
||||
<property name="currentIndex">
|
||||
<number>2</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="tab">
|
||||
<attribute name="title">
|
||||
|
||||
@@ -392,6 +392,7 @@ void ShopForm::on_commoditySearch_textChanged(const QString &text)
|
||||
QSortFilterProxyModel proxy;
|
||||
proxy.setSourceModel(m_commodityModel);
|
||||
proxy.setFilterKeyColumn(0);
|
||||
proxy.setFilterCaseSensitivity(Qt::CaseInsensitive);
|
||||
proxy.setFilterFixedString(text);
|
||||
|
||||
auto moveToIndex = [this](const QModelIndex &matchingIndex) {
|
||||
|
||||
@@ -247,6 +247,11 @@ void ShopService::moveItems(QList<VoucherItemPtr> items, VoucherPtr source, Vouc
|
||||
{
|
||||
erase(source);
|
||||
}
|
||||
else
|
||||
{
|
||||
calculate(source);
|
||||
update(source);
|
||||
}
|
||||
|
||||
tx.commit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user