Moved splashscreen into app resources
This commit is contained in:
@@ -54,7 +54,7 @@ void AdvancedViewDialog::contextMenuBooking(const QPoint &pos)
|
|||||||
{
|
{
|
||||||
QMenu menu;
|
QMenu menu;
|
||||||
auto createAction = menu.addAction(tr("Create booking"));
|
auto createAction = menu.addAction(tr("Create booking"));
|
||||||
auto refreshAction = menu.addAction(QIcon(QPixmap(QStringLiteral(":/zeiterfassunglib/images/refresh.png"))), tr("Refresh bookings"));
|
auto refreshAction = menu.addAction(QIcon(QPixmap(QStringLiteral(":/zeiterfassung/zeiterfassunglib/images/refresh.png"))), tr("Refresh bookings"));
|
||||||
auto selectedAction = menu.exec(ui->bookingsView->viewport()->mapToGlobal(pos));
|
auto selectedAction = menu.exec(ui->bookingsView->viewport()->mapToGlobal(pos));
|
||||||
if(selectedAction == createAction)
|
if(selectedAction == createAction)
|
||||||
{
|
{
|
||||||
@@ -160,7 +160,7 @@ void AdvancedViewDialog::contextMenuTimeAssignment(const QPoint &pos)
|
|||||||
{
|
{
|
||||||
QMenu menu;
|
QMenu menu;
|
||||||
auto createAction = menu.addAction(tr("Create time assignment"));
|
auto createAction = menu.addAction(tr("Create time assignment"));
|
||||||
auto refreshAction = menu.addAction(QIcon(QPixmap(QStringLiteral(":/zeiterfassunglib/images/refresh.png"))), tr("Refresh time assignments"));
|
auto refreshAction = menu.addAction(QIcon(QPixmap(QStringLiteral(":/zeiterfassung/zeiterfassunglib/images/refresh.png"))), tr("Refresh time assignments"));
|
||||||
auto selectedAction = menu.exec(ui->timeAssignmentsView->viewport()->mapToGlobal(pos));
|
auto selectedAction = menu.exec(ui->timeAssignmentsView->viewport()->mapToGlobal(pos));
|
||||||
if(selectedAction == createAction)
|
if(selectedAction == createAction)
|
||||||
{
|
{
|
||||||
|
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
@@ -333,7 +333,7 @@ int main(int argc, char *argv[])
|
|||||||
QCoreApplication::setApplicationName(QStringLiteral("zeiterfassung"));
|
QCoreApplication::setApplicationName(QStringLiteral("zeiterfassung"));
|
||||||
QCoreApplication::setApplicationVersion(QStringLiteral("1.5"));
|
QCoreApplication::setApplicationVersion(QStringLiteral("1.5"));
|
||||||
|
|
||||||
QSplashScreen splashScreen(QPixmap(QStringLiteral(":/zeiterfassunglib/images/splash.png")));
|
QSplashScreen splashScreen(QPixmap(QStringLiteral(":/zeiterfassung/images/splash.png")));
|
||||||
splashScreen.showMessage(QCoreApplication::translate("main", "Loading settings..."));
|
splashScreen.showMessage(QCoreApplication::translate("main", "Loading settings..."));
|
||||||
splashScreen.show();
|
splashScreen.show();
|
||||||
|
|
||||||
|
@@ -25,7 +25,7 @@ FORMS += strips/bookingstartstrip.ui \
|
|||||||
strips/bookingendstrip.ui \
|
strips/bookingendstrip.ui \
|
||||||
strips/timeassignmentstrip.ui
|
strips/timeassignmentstrip.ui
|
||||||
|
|
||||||
RESOURCES +=
|
RESOURCES += zeiterfassung_resources.qrc
|
||||||
|
|
||||||
TRANSLATIONS += translations/zeiterfassung_en.ts \
|
TRANSLATIONS += translations/zeiterfassung_en.ts \
|
||||||
translations/zeiterfassung_de.ts
|
translations/zeiterfassung_de.ts
|
||||||
|
5
zeiterfassung/zeiterfassung_resources.qrc
Normal file
5
zeiterfassung/zeiterfassung_resources.qrc
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<RCC>
|
||||||
|
<qresource prefix="/zeiterfassung">
|
||||||
|
<file>images/splash.png</file>
|
||||||
|
</qresource>
|
||||||
|
</RCC>
|
@@ -37,7 +37,7 @@
|
|||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="pixmap">
|
<property name="pixmap">
|
||||||
<pixmap resource="../resources.qrc">:/zeiterfassunglib/images/authentication.png</pixmap>
|
<pixmap resource="../resources.qrc">:/zeiterfassung/zeiterfassunglib/images/authentication.png</pixmap>
|
||||||
</property>
|
</property>
|
||||||
<property name="scaledContents">
|
<property name="scaledContents">
|
||||||
<bool>true</bool>
|
<bool>true</bool>
|
||||||
|
@@ -12,7 +12,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="windowIcon">
|
<property name="windowIcon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset resource="resources.qrc">
|
||||||
<normaloff>:/zeiterfassunglib/images/icon.png</normaloff>:/zeiterfassunglib/images/icon.png</iconset>
|
<normaloff>:/zeiterfassung/zeiterfassunglib/images/icon.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/icon.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QWidget" name="centralwidget">
|
<widget class="QWidget" name="centralwidget">
|
||||||
<layout class="QVBoxLayout" stretch="0,0">
|
<layout class="QVBoxLayout" stretch="0,0">
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset resource="resources.qrc">
|
||||||
<normaloff>:/zeiterfassunglib/images/previous.png</normaloff>:/zeiterfassunglib/images/previous.png</iconset>
|
<normaloff>:/zeiterfassung/zeiterfassunglib/images/previous.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/previous.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset resource="resources.qrc">
|
||||||
<normaloff>:/zeiterfassunglib/images/next.png</normaloff>:/zeiterfassunglib/images/next.png</iconset>
|
<normaloff>:/zeiterfassung/zeiterfassunglib/images/next.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/next.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset resource="resources.qrc">
|
||||||
<normaloff>:/zeiterfassunglib/images/now.png</normaloff>:/zeiterfassunglib/images/now.png</iconset>
|
<normaloff>:/zeiterfassung/zeiterfassunglib/images/now.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/now.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -249,7 +249,7 @@
|
|||||||
<action name="actionQuit">
|
<action name="actionQuit">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset resource="resources.qrc">
|
||||||
<normaloff>:/zeiterfassunglib/images/quit.png</normaloff>:/zeiterfassunglib/images/quit.png</iconset>
|
<normaloff>:/zeiterfassung/zeiterfassunglib/images/quit.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/quit.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Quit</string>
|
<string>&Quit</string>
|
||||||
@@ -258,7 +258,7 @@
|
|||||||
<action name="actionAboutMe">
|
<action name="actionAboutMe">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset resource="resources.qrc">
|
||||||
<normaloff>:/zeiterfassunglib/images/user.png</normaloff>:/zeiterfassunglib/images/user.png</iconset>
|
<normaloff>:/zeiterfassung/zeiterfassunglib/images/user.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/user.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>About &Me</string>
|
<string>About &Me</string>
|
||||||
@@ -267,7 +267,7 @@
|
|||||||
<action name="actionAboutzeiterfassung">
|
<action name="actionAboutzeiterfassung">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset resource="resources.qrc">
|
||||||
<normaloff>:/zeiterfassunglib/images/about.png</normaloff>:/zeiterfassunglib/images/about.png</iconset>
|
<normaloff>:/zeiterfassung/zeiterfassunglib/images/about.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/about.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>About &zeiterfassung</string>
|
<string>About &zeiterfassung</string>
|
||||||
@@ -281,7 +281,7 @@
|
|||||||
<action name="actionToday">
|
<action name="actionToday">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset resource="resources.qrc">
|
||||||
<normaloff>:/zeiterfassunglib/images/today.png</normaloff>:/zeiterfassunglib/images/today.png</iconset>
|
<normaloff>:/zeiterfassung/zeiterfassunglib/images/today.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/today.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Today</string>
|
<string>&Today</string>
|
||||||
@@ -290,7 +290,7 @@
|
|||||||
<action name="actionRefresh">
|
<action name="actionRefresh">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset resource="resources.qrc">
|
||||||
<normaloff>:/zeiterfassunglib/images/refresh.png</normaloff>:/zeiterfassunglib/images/refresh.png</iconset>
|
<normaloff>:/zeiterfassung/zeiterfassunglib/images/refresh.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/refresh.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Refresh everything</string>
|
<string>&Refresh everything</string>
|
||||||
@@ -299,7 +299,7 @@
|
|||||||
<action name="actionSettings">
|
<action name="actionSettings">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset resource="resources.qrc">
|
||||||
<normaloff>:/zeiterfassunglib/images/settings.png</normaloff>:/zeiterfassunglib/images/settings.png</iconset>
|
<normaloff>:/zeiterfassung/zeiterfassunglib/images/settings.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/settings.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>&Settings</string>
|
<string>&Settings</string>
|
||||||
@@ -308,7 +308,7 @@
|
|||||||
<action name="actionHelp">
|
<action name="actionHelp">
|
||||||
<property name="icon">
|
<property name="icon">
|
||||||
<iconset resource="resources.qrc">
|
<iconset resource="resources.qrc">
|
||||||
<normaloff>:/zeiterfassunglib/images/help.png</normaloff>:/zeiterfassunglib/images/help.png</iconset>
|
<normaloff>:/zeiterfassung/zeiterfassunglib/images/help.png</normaloff>:/zeiterfassung/zeiterfassunglib/images/help.png</iconset>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Help</string>
|
<string>Help</string>
|
||||||
|
@@ -72,7 +72,7 @@ FORMS += mainwindow.ui \
|
|||||||
dialogs/authenticationdialog.ui \
|
dialogs/authenticationdialog.ui \
|
||||||
dialogs/aboutmedialog.ui
|
dialogs/aboutmedialog.ui
|
||||||
|
|
||||||
RESOURCES += resources.qrc
|
RESOURCES += zeiterfassunglib_resources.qrc
|
||||||
|
|
||||||
TRANSLATIONS += translations/zeiterfassunglib_en.ts \
|
TRANSLATIONS += translations/zeiterfassunglib_en.ts \
|
||||||
translations/zeiterfassunglib_de.ts
|
translations/zeiterfassunglib_de.ts
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
<RCC>
|
<RCC>
|
||||||
<qresource prefix="/zeiterfassunglib">
|
<qresource prefix="/zeiterfassung/zeiterfassunglib">
|
||||||
<file>images/about.png</file>
|
<file>images/about.png</file>
|
||||||
<file>images/authentication.png</file>
|
<file>images/authentication.png</file>
|
||||||
<file>images/help.png</file>
|
<file>images/help.png</file>
|
||||||
@@ -10,7 +10,6 @@
|
|||||||
<file>images/quit.png</file>
|
<file>images/quit.png</file>
|
||||||
<file>images/refresh.png</file>
|
<file>images/refresh.png</file>
|
||||||
<file>images/settings.png</file>
|
<file>images/settings.png</file>
|
||||||
<file>images/splash.png</file>
|
|
||||||
<file>images/today.png</file>
|
<file>images/today.png</file>
|
||||||
<file>images/user.png</file>
|
<file>images/user.png</file>
|
||||||
</qresource>
|
</qresource>
|
Reference in New Issue
Block a user