- version 0.9.0 - dark mode + fixes

This commit is contained in:
Dmytro Bogovych 2018-10-05 18:20:40 +03:00
parent ac361789ae
commit 305cde325f
112 changed files with 13189 additions and 2249 deletions

View File

@ -1,3 +0,0 @@
1) Save & load columns width in time table
2) Make hierarchical time table
3) Add tray icon

View File

@ -34,3 +34,30 @@ QMAKE_MAC_SDK.macx-clang.macosx10.12.QMAKE_RANLIB = \
QMAKE_MAC_SDK.macx-clang.macosx10.12.QMAKE_LINK = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
QMAKE_MAC_SDK.macx-clang.macosx10.12.QMAKE_LINK_SHLIB = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++
QMAKE_MAC_SDK.macosx10.12.platform_name = macosx
QMAKE_MAC_SDK.macosx.--show-sdk-path = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
QMAKE_MAC_SDK.macosx.--show-sdk-platform-path = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
QMAKE_MAC_SDK.macosx.--show-sdk-version = 10.13
QMAKE_MAC_SDK.macx-clang.macosx.QMAKE_ACTOOL = /Applications/Xcode.app/Contents/Developer/usr/bin/actool
QMAKE_CXX.INCDIRS = \
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1 \
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/9.1.0/include \
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include \
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include
QMAKE_CXX.LIBDIRS = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/lib
QMAKE_CXX.QT_COMPILER_STDCXX = 199711L
QMAKE_CXX.QMAKE_APPLE_CC = 6000
QMAKE_CXX.QMAKE_APPLE_CLANG_MAJOR_VERSION = 9
QMAKE_CXX.QMAKE_APPLE_CLANG_MINOR_VERSION = 1
QMAKE_CXX.QMAKE_APPLE_CLANG_PATCH_VERSION = 0
QMAKE_CXX.QMAKE_GCC_MAJOR_VERSION = 4
QMAKE_CXX.QMAKE_GCC_MINOR_VERSION = 2
QMAKE_CXX.QMAKE_GCC_PATCH_VERSION = 1
QMAKE_CXX.COMPILER_MACROS = \
QT_COMPILER_STDCXX \
QMAKE_APPLE_CC \
QMAKE_APPLE_CLANG_MAJOR_VERSION \
QMAKE_APPLE_CLANG_MINOR_VERSION \
QMAKE_APPLE_CLANG_PATCH_VERSION \
QMAKE_GCC_MAJOR_VERSION \
QMAKE_GCC_MINOR_VERSION \
QMAKE_GCC_PATCH_VERSION

View File

@ -11,7 +11,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += printsupport
CONFIG += c++11
TARGET = Litt
TEMPLATE = app
VERSION = 0.8.17
VERSION = 0.9.0
VERSTR = '\\"$${VERSION}\\"'
DEFINES += VER=\"$${VERSTR}\"
@ -131,7 +131,7 @@ FORMS += mainwindow.ui \
stopworkdialog.ui \
startworkdialog.ui
RESOURCES = mainwindow.qrc
RESOURCES = mainwindow.qrc resources/qdarkstyle/style.qrc
OBJECTIVE_SOURCES += \
platforms/osx/hidtrackerimpl_osx.mm \

View File

@ -6,6 +6,8 @@
#include <QDesktopServices>
#include <QMessageBox>
#include <QKeyEvent>
#include <QTextStream>
#include <QApplication>
#ifdef TARGET_OSX
@ -21,6 +23,25 @@ char* __strlcat_chk (char* dest, const char* src, int len, int destcapacity)
#endif
#include "settings.h"
void ThemeHelper::applyCurrentTheme(Settings& settings)
{
// Dark theme
if (settings.data()[KEY_DARK_THEME].toBool())
{
QFile f(":qdarkstyle/style.qss");
if (f.exists())
{
f.open(QFile::ReadOnly | QFile::Text);
QTextStream ts(&f);
qApp->setStyleSheet(ts.readAll());
}
}
else
qApp->setStyleSheet("");
}
QString TimeHelper::secondsToDisplay(int seconds, bool showSeconds)
{
int hours = seconds / 3600;

View File

@ -4,12 +4,20 @@
#include <QString>
#include <QObject>
class Settings;
class ThemeHelper
{
public:
static void applyCurrentTheme(Settings& settings);
};
class TimeHelper
{
public:
static QString secondsToDisplay(int seconds, bool showSeconds);
};
class PathHelper
{
public:

View File

@ -1,10 +1,14 @@
#include "mainwindow.h"
#include <QApplication>
#include <QLayout>
#include "settings.h"
#include "helper.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
ThemeHelper::applyCurrentTheme(Settings::instance());
MainWindow w;
w.layout()->invalidate();

View File

@ -34,6 +34,10 @@ MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow), mPasswordFailed(false), mFindInTasksDlg(this), mDockRecentMenu(nullptr)
{
mSettings = QSharedPointer<Settings>(new Settings());
ThemeHelper::applyCurrentTheme(*mSettings);
mAttachmentsAction = nullptr;
mAttachmentsLabel = nullptr;
@ -185,7 +189,6 @@ void MainWindow::initClient()
mFindStartIndex = 0;
// Open settings
mSettings = QSharedPointer<Settings>(new Settings());
mLogger = QSharedPointer<Logger>(new Logger());
ui->mAboutAction->setMenuRole(QAction::AboutRole);

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'aboutdlg.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'aboutdlg.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_AboutDlg_t {
QByteArrayData data[3];
char stringdata0[22];
@ -75,7 +77,7 @@ void AboutDlg::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, vo
const QMetaObject AboutDlg::staticMetaObject = {
{ &QDialog::staticMetaObject, qt_meta_stringdata_AboutDlg.data,
qt_meta_data_AboutDlg, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_AboutDlg, qt_static_metacall, nullptr, nullptr}
};
@ -86,9 +88,9 @@ const QMetaObject *AboutDlg::metaObject() const
void *AboutDlg::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_AboutDlg.stringdata0))
return static_cast<void*>(const_cast< AboutDlg*>(this));
return static_cast<void*>(this);
return QDialog::qt_metacast(_clname);
}
@ -108,4 +110,5 @@ int AboutDlg::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
}
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'attachmentsdialog.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'attachmentsdialog.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_AttachmentsDialog_t {
QByteArrayData data[1];
char stringdata0[18];
@ -62,7 +64,7 @@ void AttachmentsDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, in
const QMetaObject AttachmentsDialog::staticMetaObject = {
{ &QDialog::staticMetaObject, qt_meta_stringdata_AttachmentsDialog.data,
qt_meta_data_AttachmentsDialog, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_AttachmentsDialog, qt_static_metacall, nullptr, nullptr}
};
@ -73,17 +75,16 @@ const QMetaObject *AttachmentsDialog::metaObject() const
void *AttachmentsDialog::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_AttachmentsDialog.stringdata0))
return static_cast<void*>(const_cast< AttachmentsDialog*>(this));
return static_cast<void*>(this);
return QDialog::qt_metacast(_clname);
}
int AttachmentsDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QDialog::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'attachmentslist.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'attachmentslist.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_AttachmentsListModel_t {
QByteArrayData data[1];
char stringdata0[21];
@ -62,7 +64,7 @@ void AttachmentsListModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c,
const QMetaObject AttachmentsListModel::staticMetaObject = {
{ &QAbstractListModel::staticMetaObject, qt_meta_stringdata_AttachmentsListModel.data,
qt_meta_data_AttachmentsListModel, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_AttachmentsListModel, qt_static_metacall, nullptr, nullptr}
};
@ -73,17 +75,15 @@ const QMetaObject *AttachmentsListModel::metaObject() const
void *AttachmentsListModel::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_AttachmentsListModel.stringdata0))
return static_cast<void*>(const_cast< AttachmentsListModel*>(this));
return static_cast<void*>(this);
return QAbstractListModel::qt_metacast(_clname);
}
int AttachmentsListModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QAbstractListModel::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
return _id;
}
struct qt_meta_stringdata_AttachmentsList_t {
@ -161,7 +161,7 @@ void AttachmentsList::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
const QMetaObject AttachmentsList::staticMetaObject = {
{ &QWidget::staticMetaObject, qt_meta_stringdata_AttachmentsList.data,
qt_meta_data_AttachmentsList, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_AttachmentsList, qt_static_metacall, nullptr, nullptr}
};
@ -172,9 +172,9 @@ const QMetaObject *AttachmentsList::metaObject() const
void *AttachmentsList::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_AttachmentsList.stringdata0))
return static_cast<void*>(const_cast< AttachmentsList*>(this));
return static_cast<void*>(this);
return QWidget::qt_metacast(_clname);
}
@ -194,4 +194,5 @@ int AttachmentsList::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
}
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'finddialog.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'finddialog.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_FindInTasksDialog_t {
QByteArrayData data[9];
char stringdata0[99];
@ -102,7 +104,7 @@ void FindInTasksDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, in
const QMetaObject FindInTasksDialog::staticMetaObject = {
{ &QDialog::staticMetaObject, qt_meta_stringdata_FindInTasksDialog.data,
qt_meta_data_FindInTasksDialog, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_FindInTasksDialog, qt_static_metacall, nullptr, nullptr}
};
@ -113,9 +115,9 @@ const QMetaObject *FindInTasksDialog::metaObject() const
void *FindInTasksDialog::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_FindInTasksDialog.stringdata0))
return static_cast<void*>(const_cast< FindInTasksDialog*>(this));
return static_cast<void*>(this);
return QDialog::qt_metacast(_clname);
}
@ -135,4 +137,5 @@ int FindInTasksDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
}
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'findsupport.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'findsupport.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_FindResultsModel_t {
QByteArrayData data[5];
char stringdata0[46];
@ -88,7 +90,7 @@ void FindResultsModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
const QMetaObject FindResultsModel::staticMetaObject = {
{ &QAbstractTableModel::staticMetaObject, qt_meta_stringdata_FindResultsModel.data,
qt_meta_data_FindResultsModel, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_FindResultsModel, qt_static_metacall, nullptr, nullptr}
};
@ -99,9 +101,9 @@ const QMetaObject *FindResultsModel::metaObject() const
void *FindResultsModel::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_FindResultsModel.stringdata0))
return static_cast<void*>(const_cast< FindResultsModel*>(this));
return static_cast<void*>(this);
return QAbstractTableModel::qt_metacast(_clname);
}
@ -192,17 +194,16 @@ void TaskSearch::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
void **func = reinterpret_cast<void **>(_a[1]);
{
typedef void (TaskSearch::*_t)(const FindResultItem & );
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TaskSearch::newResultAvailable)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TaskSearch::newResultAvailable)) {
*result = 0;
return;
}
}
{
typedef void (TaskSearch::*_t)();
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TaskSearch::searchComplete)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TaskSearch::searchComplete)) {
*result = 1;
return;
}
@ -212,7 +213,7 @@ void TaskSearch::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
const QMetaObject TaskSearch::staticMetaObject = {
{ &QThread::staticMetaObject, qt_meta_stringdata_TaskSearch.data,
qt_meta_data_TaskSearch, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_TaskSearch, qt_static_metacall, nullptr, nullptr}
};
@ -223,9 +224,9 @@ const QMetaObject *TaskSearch::metaObject() const
void *TaskSearch::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_TaskSearch.stringdata0))
return static_cast<void*>(const_cast< TaskSearch*>(this));
return static_cast<void*>(this);
return QThread::qt_metacast(_clname);
}
@ -249,13 +250,14 @@ int TaskSearch::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
// SIGNAL 0
void TaskSearch::newResultAvailable(const FindResultItem & _t1)
{
void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
// SIGNAL 1
void TaskSearch::searchComplete()
{
QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'fvavailableupdate.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'fvavailableupdate.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_FvAvailableUpdate_t {
QByteArrayData data[1];
char stringdata0[18];
@ -62,7 +64,7 @@ void FvAvailableUpdate::qt_static_metacall(QObject *_o, QMetaObject::Call _c, in
const QMetaObject FvAvailableUpdate::staticMetaObject = {
{ &QObject::staticMetaObject, qt_meta_stringdata_FvAvailableUpdate.data,
qt_meta_data_FvAvailableUpdate, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_FvAvailableUpdate, qt_static_metacall, nullptr, nullptr}
};
@ -73,17 +75,16 @@ const QMetaObject *FvAvailableUpdate::metaObject() const
void *FvAvailableUpdate::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_FvAvailableUpdate.stringdata0))
return static_cast<void*>(const_cast< FvAvailableUpdate*>(this));
return static_cast<void*>(this);
return QObject::qt_metacast(_clname);
}
int FvAvailableUpdate::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QObject::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'fvignoredversions.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'fvignoredversions.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_FVIgnoredVersions_t {
QByteArrayData data[1];
char stringdata0[18];
@ -62,7 +64,7 @@ void FVIgnoredVersions::qt_static_metacall(QObject *_o, QMetaObject::Call _c, in
const QMetaObject FVIgnoredVersions::staticMetaObject = {
{ &QObject::staticMetaObject, qt_meta_stringdata_FVIgnoredVersions.data,
qt_meta_data_FVIgnoredVersions, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_FVIgnoredVersions, qt_static_metacall, nullptr, nullptr}
};
@ -73,17 +75,16 @@ const QMetaObject *FVIgnoredVersions::metaObject() const
void *FVIgnoredVersions::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_FVIgnoredVersions.stringdata0))
return static_cast<void*>(const_cast< FVIgnoredVersions*>(this));
return static_cast<void*>(this);
return QObject::qt_metacast(_clname);
}
int FVIgnoredVersions::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QObject::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'fvplatform.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'fvplatform.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_FvPlatform_t {
QByteArrayData data[1];
char stringdata0[11];
@ -62,7 +64,7 @@ void FvPlatform::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
const QMetaObject FvPlatform::staticMetaObject = {
{ &QObject::staticMetaObject, qt_meta_stringdata_FvPlatform.data,
qt_meta_data_FvPlatform, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_FvPlatform, qt_static_metacall, nullptr, nullptr}
};
@ -73,17 +75,16 @@ const QMetaObject *FvPlatform::metaObject() const
void *FvPlatform::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_FvPlatform.stringdata0))
return static_cast<void*>(const_cast< FvPlatform*>(this));
return static_cast<void*>(this);
return QObject::qt_metacast(_clname);
}
int FvPlatform::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QObject::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'fvupdateconfirmdialog.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'fvupdateconfirmdialog.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_FvUpdateConfirmDialog_t {
QByteArrayData data[1];
char stringdata0[22];
@ -62,7 +64,7 @@ void FvUpdateConfirmDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c
const QMetaObject FvUpdateConfirmDialog::staticMetaObject = {
{ &QDialog::staticMetaObject, qt_meta_stringdata_FvUpdateConfirmDialog.data,
qt_meta_data_FvUpdateConfirmDialog, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_FvUpdateConfirmDialog, qt_static_metacall, nullptr, nullptr}
};
@ -73,17 +75,16 @@ const QMetaObject *FvUpdateConfirmDialog::metaObject() const
void *FvUpdateConfirmDialog::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_FvUpdateConfirmDialog.stringdata0))
return static_cast<void*>(const_cast< FvUpdateConfirmDialog*>(this));
return static_cast<void*>(this);
return QDialog::qt_metacast(_clname);
}
int FvUpdateConfirmDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QDialog::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'fvupdater.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'fvupdater.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_FvUpdater_t {
QByteArrayData data[16];
char stringdata0[292];
@ -109,13 +111,13 @@ void FvUpdater::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, v
Q_UNUSED(_t)
switch (_id) {
case 0: { bool _r = _t->CheckForUpdates((*reinterpret_cast< bool(*)>(_a[1])));
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
case 1: { bool _r = _t->CheckForUpdates();
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
case 2: { bool _r = _t->CheckForUpdatesSilent();
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
case 3: { bool _r = _t->CheckForUpdatesNotSilent();
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = _r; } break;
if (_a[0]) *reinterpret_cast< bool*>(_a[0]) = std::move(_r); } break;
case 4: _t->InstallUpdate(); break;
case 5: _t->SkipUpdate(); break;
case 6: _t->RemindMeLater(); break;
@ -131,7 +133,7 @@ void FvUpdater::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, v
const QMetaObject FvUpdater::staticMetaObject = {
{ &QObject::staticMetaObject, qt_meta_stringdata_FvUpdater.data,
qt_meta_data_FvUpdater, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_FvUpdater, qt_static_metacall, nullptr, nullptr}
};
@ -142,9 +144,9 @@ const QMetaObject *FvUpdater::metaObject() const
void *FvUpdater::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_FvUpdater.stringdata0))
return static_cast<void*>(const_cast< FvUpdater*>(this));
return static_cast<void*>(this);
return QObject::qt_metacast(_clname);
}
@ -164,4 +166,5 @@ int FvUpdater::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
}
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'fvupdatewindow.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'fvupdatewindow.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_FvUpdateWindow_t {
QByteArrayData data[5];
char stringdata0[54];
@ -77,7 +79,7 @@ void FvUpdateWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _
const QMetaObject FvUpdateWindow::staticMetaObject = {
{ &QWidget::staticMetaObject, qt_meta_stringdata_FvUpdateWindow.data,
qt_meta_data_FvUpdateWindow, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_FvUpdateWindow, qt_static_metacall, nullptr, nullptr}
};
@ -88,9 +90,9 @@ const QMetaObject *FvUpdateWindow::metaObject() const
void *FvUpdateWindow::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_FvUpdateWindow.stringdata0))
return static_cast<void*>(const_cast< FvUpdateWindow*>(this));
return static_cast<void*>(this);
return QWidget::qt_metacast(_clname);
}
@ -110,4 +112,5 @@ int FvUpdateWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
}
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'helper.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'helper.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_EscapeKeyEventFilter_t {
QByteArrayData data[4];
char stringdata0[40];
@ -73,10 +75,9 @@ void EscapeKeyEventFilter::qt_static_metacall(QObject *_o, QMetaObject::Call _c,
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
void **func = reinterpret_cast<void **>(_a[1]);
{
typedef void (EscapeKeyEventFilter::*_t)(QObject * );
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&EscapeKeyEventFilter::escapePressed)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&EscapeKeyEventFilter::escapePressed)) {
*result = 0;
return;
}
@ -86,7 +87,7 @@ void EscapeKeyEventFilter::qt_static_metacall(QObject *_o, QMetaObject::Call _c,
const QMetaObject EscapeKeyEventFilter::staticMetaObject = {
{ &QObject::staticMetaObject, qt_meta_stringdata_EscapeKeyEventFilter.data,
qt_meta_data_EscapeKeyEventFilter, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_EscapeKeyEventFilter, qt_static_metacall, nullptr, nullptr}
};
@ -97,9 +98,9 @@ const QMetaObject *EscapeKeyEventFilter::metaObject() const
void *EscapeKeyEventFilter::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_EscapeKeyEventFilter.stringdata0))
return static_cast<void*>(const_cast< EscapeKeyEventFilter*>(this));
return static_cast<void*>(this);
return QObject::qt_metacast(_clname);
}
@ -123,7 +124,8 @@ int EscapeKeyEventFilter::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
// SIGNAL 0
void EscapeKeyEventFilter::escapePressed(QObject * _t1)
{
void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'hidtracker.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'hidtracker.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_HIDActivityTracker_t {
QByteArrayData data[5];
char stringdata0[61];
@ -84,17 +86,16 @@ void HIDActivityTracker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, i
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
void **func = reinterpret_cast<void **>(_a[1]);
{
typedef void (HIDActivityTracker::*_t)();
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&HIDActivityTracker::idleDetected)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&HIDActivityTracker::idleDetected)) {
*result = 0;
return;
}
}
{
typedef void (HIDActivityTracker::*_t)();
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&HIDActivityTracker::activityDetected)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&HIDActivityTracker::activityDetected)) {
*result = 1;
return;
}
@ -105,7 +106,7 @@ void HIDActivityTracker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, i
const QMetaObject HIDActivityTracker::staticMetaObject = {
{ &QObject::staticMetaObject, qt_meta_stringdata_HIDActivityTracker.data,
qt_meta_data_HIDActivityTracker, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_HIDActivityTracker, qt_static_metacall, nullptr, nullptr}
};
@ -116,9 +117,9 @@ const QMetaObject *HIDActivityTracker::metaObject() const
void *HIDActivityTracker::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_HIDActivityTracker.stringdata0))
return static_cast<void*>(const_cast< HIDActivityTracker*>(this));
return static_cast<void*>(this);
return QObject::qt_metacast(_clname);
}
@ -142,12 +143,13 @@ int HIDActivityTracker::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
// SIGNAL 0
void HIDActivityTracker::idleDetected()
{
QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
// SIGNAL 1
void HIDActivityTracker::activityDetected()
{
QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'logger.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'logger.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_Logger_t {
QByteArrayData data[1];
char stringdata0[7];
@ -62,7 +64,7 @@ void Logger::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void
const QMetaObject Logger::staticMetaObject = {
{ &QObject::staticMetaObject, qt_meta_stringdata_Logger.data,
qt_meta_data_Logger, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_Logger, qt_static_metacall, nullptr, nullptr}
};
@ -73,17 +75,16 @@ const QMetaObject *Logger::metaObject() const
void *Logger::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_Logger.stringdata0))
return static_cast<void*>(const_cast< Logger*>(this));
return static_cast<void*>(this);
return QObject::qt_metacast(_clname);
}
int Logger::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QObject::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'mainwindow.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'mainwindow.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_MainWindow_t {
QByteArrayData data[82];
char stringdata0[1077];
@ -378,17 +380,16 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
void **func = reinterpret_cast<void **>(_a[1]);
{
typedef void (MainWindow::*_t)();
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MainWindow::onTimeFormatChanged)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::onTimeFormatChanged)) {
*result = 0;
return;
}
}
{
typedef void (MainWindow::*_t)();
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&MainWindow::onTimeChanged)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&MainWindow::onTimeChanged)) {
*result = 1;
return;
}
@ -398,7 +399,7 @@ void MainWindow::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
const QMetaObject MainWindow::staticMetaObject = {
{ &QMainWindow::staticMetaObject, qt_meta_stringdata_MainWindow.data,
qt_meta_data_MainWindow, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_MainWindow, qt_static_metacall, nullptr, nullptr}
};
@ -409,9 +410,9 @@ const QMetaObject *MainWindow::metaObject() const
void *MainWindow::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_MainWindow.stringdata0))
return static_cast<void*>(const_cast< MainWindow*>(this));
return static_cast<void*>(this);
return QMainWindow::qt_metacast(_clname);
}
@ -435,12 +436,13 @@ int MainWindow::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
// SIGNAL 0
void MainWindow::onTimeFormatChanged()
{
QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
// SIGNAL 1
void MainWindow::onTimeChanged()
{
QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'newpassworddlg.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'newpassworddlg.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_NewPasswordDlg_t {
QByteArrayData data[3];
char stringdata0[26];
@ -75,7 +77,7 @@ void NewPasswordDlg::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _
const QMetaObject NewPasswordDlg::staticMetaObject = {
{ &QDialog::staticMetaObject, qt_meta_stringdata_NewPasswordDlg.data,
qt_meta_data_NewPasswordDlg, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_NewPasswordDlg, qt_static_metacall, nullptr, nullptr}
};
@ -86,9 +88,9 @@ const QMetaObject *NewPasswordDlg::metaObject() const
void *NewPasswordDlg::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_NewPasswordDlg.stringdata0))
return static_cast<void*>(const_cast< NewPasswordDlg*>(this));
return static_cast<void*>(this);
return QDialog::qt_metacast(_clname);
}
@ -108,4 +110,5 @@ int NewPasswordDlg::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
}
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'passworddlg.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'passworddlg.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_PasswordDlg_t {
QByteArrayData data[1];
char stringdata0[12];
@ -62,7 +64,7 @@ void PasswordDlg::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
const QMetaObject PasswordDlg::staticMetaObject = {
{ &QDialog::staticMetaObject, qt_meta_stringdata_PasswordDlg.data,
qt_meta_data_PasswordDlg, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_PasswordDlg, qt_static_metacall, nullptr, nullptr}
};
@ -73,17 +75,16 @@ const QMetaObject *PasswordDlg::metaObject() const
void *PasswordDlg::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_PasswordDlg.stringdata0))
return static_cast<void*>(const_cast< PasswordDlg*>(this));
return static_cast<void*>(this);
return QDialog::qt_metacast(_clname);
}
int PasswordDlg::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QDialog::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'preferencesdlg.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'preferencesdlg.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_PreferencesDlg_t {
QByteArrayData data[9];
char stringdata0[139];
@ -98,7 +100,7 @@ void PreferencesDlg::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _
const QMetaObject PreferencesDlg::staticMetaObject = {
{ &QDialog::staticMetaObject, qt_meta_stringdata_PreferencesDlg.data,
qt_meta_data_PreferencesDlg, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_PreferencesDlg, qt_static_metacall, nullptr, nullptr}
};
@ -109,9 +111,9 @@ const QMetaObject *PreferencesDlg::metaObject() const
void *PreferencesDlg::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_PreferencesDlg.stringdata0))
return static_cast<void*>(const_cast< PreferencesDlg*>(this));
return static_cast<void*>(this);
return QDialog::qt_metacast(_clname);
}
@ -131,4 +133,5 @@ int PreferencesDlg::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
}
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'sleeptracker_osx.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'sleeptracker_osx.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_SleepTracker_t {
QByteArrayData data[4];
char stringdata0[43];
@ -75,17 +77,16 @@ void SleepTracker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
void **func = reinterpret_cast<void **>(_a[1]);
{
typedef void (SleepTracker::*_t)();
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SleepTracker::onSystemSleep)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SleepTracker::onSystemSleep)) {
*result = 0;
return;
}
}
{
typedef void (SleepTracker::*_t)();
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&SleepTracker::onSystemResume)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&SleepTracker::onSystemResume)) {
*result = 1;
return;
}
@ -96,7 +97,7 @@ void SleepTracker::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id
const QMetaObject SleepTracker::staticMetaObject = {
{ &QObject::staticMetaObject, qt_meta_stringdata_SleepTracker.data,
qt_meta_data_SleepTracker, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_SleepTracker, qt_static_metacall, nullptr, nullptr}
};
@ -107,9 +108,9 @@ const QMetaObject *SleepTracker::metaObject() const
void *SleepTracker::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_SleepTracker.stringdata0))
return static_cast<void*>(const_cast< SleepTracker*>(this));
return static_cast<void*>(this);
return QObject::qt_metacast(_clname);
}
@ -133,12 +134,13 @@ int SleepTracker::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
// SIGNAL 0
void SleepTracker::onSystemSleep()
{
QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
// SIGNAL 1
void SleepTracker::onSystemResume()
{
QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'startworkdialog.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'startworkdialog.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_StartWorkDialog_t {
QByteArrayData data[7];
char stringdata0[112];
@ -93,17 +95,16 @@ void StartWorkDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
void **func = reinterpret_cast<void **>(_a[1]);
{
typedef void (StartWorkDialog::*_t)();
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&StartWorkDialog::continueTracking)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&StartWorkDialog::continueTracking)) {
*result = 0;
return;
}
}
{
typedef void (StartWorkDialog::*_t)();
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&StartWorkDialog::breakTracking)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&StartWorkDialog::breakTracking)) {
*result = 1;
return;
}
@ -114,7 +115,7 @@ void StartWorkDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
const QMetaObject StartWorkDialog::staticMetaObject = {
{ &QDialog::staticMetaObject, qt_meta_stringdata_StartWorkDialog.data,
qt_meta_data_StartWorkDialog, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_StartWorkDialog, qt_static_metacall, nullptr, nullptr}
};
@ -125,9 +126,9 @@ const QMetaObject *StartWorkDialog::metaObject() const
void *StartWorkDialog::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_StartWorkDialog.stringdata0))
return static_cast<void*>(const_cast< StartWorkDialog*>(this));
return static_cast<void*>(this);
return QDialog::qt_metacast(_clname);
}
@ -151,12 +152,13 @@ int StartWorkDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
// SIGNAL 0
void StartWorkDialog::continueTracking()
{
QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
// SIGNAL 1
void StartWorkDialog::breakTracking()
{
QMetaObject::activate(this, &staticMetaObject, 1, Q_NULLPTR);
QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'stopworkdialog.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'stopworkdialog.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_StopWorkDialog_t {
QByteArrayData data[8];
char stringdata0[120];
@ -94,17 +96,16 @@ void StopWorkDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
void **func = reinterpret_cast<void **>(_a[1]);
{
typedef void (StopWorkDialog::*_t)();
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&StopWorkDialog::continueTracking)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&StopWorkDialog::continueTracking)) {
*result = 0;
return;
}
}
{
typedef void (StopWorkDialog::*_t)(const QDateTime & );
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&StopWorkDialog::breakTracking)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&StopWorkDialog::breakTracking)) {
*result = 1;
return;
}
@ -114,7 +115,7 @@ void StopWorkDialog::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _
const QMetaObject StopWorkDialog::staticMetaObject = {
{ &QDialog::staticMetaObject, qt_meta_stringdata_StopWorkDialog.data,
qt_meta_data_StopWorkDialog, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_StopWorkDialog, qt_static_metacall, nullptr, nullptr}
};
@ -125,9 +126,9 @@ const QMetaObject *StopWorkDialog::metaObject() const
void *StopWorkDialog::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_StopWorkDialog.stringdata0))
return static_cast<void*>(const_cast< StopWorkDialog*>(this));
return static_cast<void*>(this);
return QDialog::qt_metacast(_clname);
}
@ -151,13 +152,14 @@ int StopWorkDialog::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
// SIGNAL 0
void StopWorkDialog::continueTracking()
{
QMetaObject::activate(this, &staticMetaObject, 0, Q_NULLPTR);
QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}
// SIGNAL 1
void StopWorkDialog::breakTracking(const QDateTime & _t1)
{
void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 1, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'task.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'task.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_Task_t {
QByteArrayData data[1];
char stringdata0[5];
@ -62,7 +64,7 @@ void Task::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void *
const QMetaObject Task::staticMetaObject = {
{ &QObject::staticMetaObject, qt_meta_stringdata_Task.data,
qt_meta_data_Task, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_Task, qt_static_metacall, nullptr, nullptr}
};
@ -73,17 +75,16 @@ const QMetaObject *Task::metaObject() const
void *Task::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_Task.stringdata0))
return static_cast<void*>(const_cast< Task*>(this));
return static_cast<void*>(this);
return QObject::qt_metacast(_clname);
}
int Task::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QObject::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'tasktreemodel.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'tasktreemodel.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_TaskTreeModel_t {
QByteArrayData data[5];
char stringdata0[35];
@ -73,10 +75,9 @@ void TaskTreeModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _i
}
} else if (_c == QMetaObject::IndexOfMethod) {
int *result = reinterpret_cast<int *>(_a[0]);
void **func = reinterpret_cast<void **>(_a[1]);
{
typedef void (TaskTreeModel::*_t)(PTask );
if (*reinterpret_cast<_t *>(func) == static_cast<_t>(&TaskTreeModel::onTaskMoved)) {
if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&TaskTreeModel::onTaskMoved)) {
*result = 0;
return;
}
@ -86,7 +87,7 @@ void TaskTreeModel::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _i
const QMetaObject TaskTreeModel::staticMetaObject = {
{ &QAbstractItemModel::staticMetaObject, qt_meta_stringdata_TaskTreeModel.data,
qt_meta_data_TaskTreeModel, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_TaskTreeModel, qt_static_metacall, nullptr, nullptr}
};
@ -97,9 +98,9 @@ const QMetaObject *TaskTreeModel::metaObject() const
void *TaskTreeModel::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_TaskTreeModel.stringdata0))
return static_cast<void*>(const_cast< TaskTreeModel*>(this));
return static_cast<void*>(this);
return QAbstractItemModel::qt_metacast(_clname);
}
@ -123,7 +124,7 @@ int TaskTreeModel::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
// SIGNAL 0
void TaskTreeModel::onTaskMoved(PTask _t1)
{
void *_a[] = { Q_NULLPTR, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(&_t1)) };
QMetaObject::activate(this, &staticMetaObject, 0, _a);
}
struct qt_meta_stringdata_TaskItemDelegate_t {
@ -170,7 +171,7 @@ void TaskItemDelegate::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
const QMetaObject TaskItemDelegate::staticMetaObject = {
{ &QItemDelegate::staticMetaObject, qt_meta_stringdata_TaskItemDelegate.data,
qt_meta_data_TaskItemDelegate, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_TaskItemDelegate, qt_static_metacall, nullptr, nullptr}
};
@ -181,17 +182,16 @@ const QMetaObject *TaskItemDelegate::metaObject() const
void *TaskItemDelegate::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_TaskItemDelegate.stringdata0))
return static_cast<void*>(const_cast< TaskItemDelegate*>(this));
return static_cast<void*>(this);
return QItemDelegate::qt_metacast(_clname);
}
int TaskItemDelegate::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QItemDelegate::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'timeintervaldlg.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'timeintervaldlg.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_TimeIntervalDlg_t {
QByteArrayData data[4];
char stringdata0[37];
@ -75,7 +77,7 @@ void TimeIntervalDlg::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
const QMetaObject TimeIntervalDlg::staticMetaObject = {
{ &QDialog::staticMetaObject, qt_meta_stringdata_TimeIntervalDlg.data,
qt_meta_data_TimeIntervalDlg, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_TimeIntervalDlg, qt_static_metacall, nullptr, nullptr}
};
@ -86,9 +88,9 @@ const QMetaObject *TimeIntervalDlg::metaObject() const
void *TimeIntervalDlg::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_TimeIntervalDlg.stringdata0))
return static_cast<void*>(const_cast< TimeIntervalDlg*>(this));
return static_cast<void*>(this);
return QDialog::qt_metacast(_clname);
}
@ -108,4 +110,5 @@ int TimeIntervalDlg::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
}
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'timereportwizard.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'timereportwizard.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_TaskTreePage_t {
QByteArrayData data[3];
char stringdata0[23];
@ -75,7 +77,7 @@ void TaskTreePage::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id
const QMetaObject TaskTreePage::staticMetaObject = {
{ &QWizardPage::staticMetaObject, qt_meta_stringdata_TaskTreePage.data,
qt_meta_data_TaskTreePage, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_TaskTreePage, qt_static_metacall, nullptr, nullptr}
};
@ -86,9 +88,9 @@ const QMetaObject *TaskTreePage::metaObject() const
void *TaskTreePage::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_TaskTreePage.stringdata0))
return static_cast<void*>(const_cast< TaskTreePage*>(this));
return static_cast<void*>(this);
return QWizardPage::qt_metacast(_clname);
}
@ -165,7 +167,7 @@ void CumulativeOptionPage::qt_static_metacall(QObject *_o, QMetaObject::Call _c,
const QMetaObject CumulativeOptionPage::staticMetaObject = {
{ &QWizardPage::staticMetaObject, qt_meta_stringdata_CumulativeOptionPage.data,
qt_meta_data_CumulativeOptionPage, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_CumulativeOptionPage, qt_static_metacall, nullptr, nullptr}
};
@ -176,9 +178,9 @@ const QMetaObject *CumulativeOptionPage::metaObject() const
void *CumulativeOptionPage::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_CumulativeOptionPage.stringdata0))
return static_cast<void*>(const_cast< CumulativeOptionPage*>(this));
return static_cast<void*>(this);
return QWizardPage::qt_metacast(_clname);
}
@ -242,7 +244,7 @@ void DateIntervalPage::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
const QMetaObject DateIntervalPage::staticMetaObject = {
{ &QWizardPage::staticMetaObject, qt_meta_stringdata_DateIntervalPage.data,
qt_meta_data_DateIntervalPage, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_DateIntervalPage, qt_static_metacall, nullptr, nullptr}
};
@ -253,17 +255,15 @@ const QMetaObject *DateIntervalPage::metaObject() const
void *DateIntervalPage::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_DateIntervalPage.stringdata0))
return static_cast<void*>(const_cast< DateIntervalPage*>(this));
return static_cast<void*>(this);
return QWizardPage::qt_metacast(_clname);
}
int DateIntervalPage::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QWizardPage::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
return _id;
}
struct qt_meta_stringdata_ReportViewPage_t {
@ -310,7 +310,7 @@ void ReportViewPage::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _
const QMetaObject ReportViewPage::staticMetaObject = {
{ &QWizardPage::staticMetaObject, qt_meta_stringdata_ReportViewPage.data,
qt_meta_data_ReportViewPage, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_ReportViewPage, qt_static_metacall, nullptr, nullptr}
};
@ -321,17 +321,15 @@ const QMetaObject *ReportViewPage::metaObject() const
void *ReportViewPage::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_ReportViewPage.stringdata0))
return static_cast<void*>(const_cast< ReportViewPage*>(this));
return static_cast<void*>(this);
return QWizardPage::qt_metacast(_clname);
}
int ReportViewPage::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
_id = QWizardPage::qt_metacall(_c, _id, _a);
if (_id < 0)
return _id;
return _id;
}
struct qt_meta_stringdata_TimeReportWizard_t {
@ -396,7 +394,7 @@ void TimeReportWizard::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int
const QMetaObject TimeReportWizard::staticMetaObject = {
{ &QWizard::staticMetaObject, qt_meta_stringdata_TimeReportWizard.data,
qt_meta_data_TimeReportWizard, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_TimeReportWizard, qt_static_metacall, nullptr, nullptr}
};
@ -407,9 +405,9 @@ const QMetaObject *TimeReportWizard::metaObject() const
void *TimeReportWizard::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_TimeReportWizard.stringdata0))
return static_cast<void*>(const_cast< TimeReportWizard*>(this));
return static_cast<void*>(this);
return QWizard::qt_metacast(_clname);
}
@ -429,4 +427,5 @@ int TimeReportWizard::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
}
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Meta object code from reading C++ file 'timetreedlg.h'
**
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.6.2)
** Created by: The Qt Meta Object Compiler version 67 (Qt 5.9.5)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -12,12 +12,14 @@
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'timetreedlg.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.6.2. It"
#error "This file was generated using the moc from 5.9.5. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif
QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_TimeTreeDlg_t {
QByteArrayData data[6];
char stringdata0[77];
@ -88,7 +90,7 @@ void TimeTreeDlg::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id,
const QMetaObject TimeTreeDlg::staticMetaObject = {
{ &QDialog::staticMetaObject, qt_meta_stringdata_TimeTreeDlg.data,
qt_meta_data_TimeTreeDlg, qt_static_metacall, Q_NULLPTR, Q_NULLPTR}
qt_meta_data_TimeTreeDlg, qt_static_metacall, nullptr, nullptr}
};
@ -99,9 +101,9 @@ const QMetaObject *TimeTreeDlg::metaObject() const
void *TimeTreeDlg::qt_metacast(const char *_clname)
{
if (!_clname) return Q_NULLPTR;
if (!_clname) return nullptr;
if (!strcmp(_clname, qt_meta_stringdata_TimeTreeDlg.stringdata0))
return static_cast<void*>(const_cast< TimeTreeDlg*>(this));
return static_cast<void*>(this);
return QDialog::qt_metacast(_clname);
}
@ -121,4 +123,5 @@ int TimeTreeDlg::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
}
return _id;
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE

View File

@ -6,6 +6,7 @@
#include <QFileDialog>
#include <QMessageBox>
#include <QSysInfo>
#include <QTextStream>
#define GET_BOOL(KEY) settings.data().value(KEY).toBool()
@ -26,6 +27,9 @@ PreferencesDlg::PreferencesDlg(QWidget *parent, Settings& settings) :
// Show seconds or not?
ui->mShowSecondsCheckbox->setChecked(settings.data().value(KEY_SHOW_SECONDS).toBool());
// Dark theme ?
ui->mDarkThemeCheckbox->setChecked(settings.data().value(KEY_DARK_THEME).toBool());
// Use custom database path ?
ui->mCustomDatabaseFileCheckbox->setChecked(settings.data().value(KEY_DB_FILENAME_SPECIFIED).toBool());
if (settings.data().value(KEY_DB_FILENAME_SPECIFIED).toBool())
@ -79,7 +83,13 @@ void PreferencesDlg::accepted()
mSettings.data()[KEY_SHOW_TRAY_ICON] = ui->mShowTrayIconCheckbox->isChecked();
//mSettings.data()[KEY_ASK_START] = ui->mAskQuestionOnStartRadiobutton->isChecked();
mSettings.data()[KEY_ASK_STOP] = ui->mAskQuestionOnStopRadiobutton->isChecked();
if (mSettings.data()[KEY_DARK_THEME].toBool() != ui->mDarkThemeCheckbox->isChecked()) {
mSettings.data()[KEY_DARK_THEME] = ui->mDarkThemeCheckbox->isChecked();
applyTheme();
}
}
void PreferencesDlg::smartStopSettingChanged(bool v)
{
@ -114,3 +124,8 @@ void PreferencesDlg::allowStartAfterIdleControls()
ui->mAskQuestionOnStopRadiobutton->setEnabled(stopEnabled);
ui->mAutomaticallyOnStopRadiobutton->setEnabled(stopEnabled);
}
void PreferencesDlg::applyTheme()
{
ThemeHelper::applyCurrentTheme(mSettings);
}

View File

@ -20,6 +20,8 @@ private:
Ui::PreferencesDlg *ui;
Settings& mSettings;
void applyTheme();
private slots:
void selectDatabase();
void accepted();

View File

@ -41,6 +41,13 @@
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="mDarkThemeCheckbox">
<property name="text">
<string>Use dark theme</string>
</property>
</widget>
</item>
<item>
<widget class="QCheckBox" name="mCustomDatabaseFileCheckbox">
<property name="text">
@ -265,6 +272,5 @@ This option requires enabled automatic stop tracking on idle.</string>
</slots>
<buttongroups>
<buttongroup name="buttonGroup"/>
<buttongroup name="buttonGroup_2"/>
</buttongroups>
</ui>

View File

@ -1,7 +1,7 @@
/****************************************************************************
** Resource object code
**
** Created by: The Resource Compiler for Qt version 5.6.2
** Created by: The Resource Compiler for Qt version 5.9.5
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/
@ -5573,124 +5573,184 @@ static const unsigned char qt_resource_name[] = {
static const unsigned char qt_resource_struct[] = {
// :
0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x1,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
// :/icons
0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x2,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
// :/icons/icons
0x0,0x0,0x0,0x0,0x0,0x2,0x0,0x0,0x0,0x39,0x0,0x0,0x0,0x3,
0x0,0x0,0x0,0x0,0x0,0x0,0x0,0x0,
// :/icons/icons/format-text-strikethrough.png
0x0,0x0,0x7,0x6e,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0xf9,0xb2,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/text-x-generic.png
0x0,0x0,0x5,0xea,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0xd5,0xee,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/tree-add-sibling-small.png
0x0,0x0,0x9,0x94,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x39,0x74,
0x0,0x0,0x1,0x4d,0xe2,0xea,0xa8,0xb8,
// :/icons/icons/clock-32x32.png
0x0,0x0,0x5,0x76,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0xab,0x40,
0x0,0x0,0x1,0x4c,0x76,0x1d,0x31,0x98,
// :/icons/icons/starttracking-osx.png
0x0,0x0,0x5,0x9a,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0xbf,0x9,
0x0,0x0,0x1,0x4a,0x5e,0xa8,0xa0,0x8,
// :/icons/icons/edit-copy.png
0x0,0x0,0x5,0xca,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0xd3,0x17,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/format-text-underline.png
0x0,0x0,0x8,0xbe,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x1a,0x7d,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/preferences-system.png
0x0,0x0,0x4,0x38,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x7a,0x2e,
0x0,0x0,0x1,0x4c,0x76,0x14,0x2d,0x0,
// :/icons/icons/tree-add-child.png
0x0,0x0,0x1,0x9e,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x20,0x21,
0x0,0x0,0x1,0x4c,0x76,0x14,0x2d,0x0,
// :/icons/icons/format-text-italic.png
0x0,0x0,0x7,0xae,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0xff,0x5b,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/list-remove.png
0x0,0x0,0x1,0x54,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x17,0x55,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/mail-attachment.png
0x0,0x0,0x9,0x3c,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x29,0x3a,
0x0,0x0,0x1,0x4b,0x58,0xcb,0x3b,0x68,
// :/icons/icons/appointment-new.png
0x0,0x0,0x9,0x68,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x30,0x11,
0x0,0x0,0x1,0x4c,0x37,0x62,0x5,0x28,
// :/icons/icons/edit-undo.png
0x0,0x0,0x4,0x6a,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x82,0x83,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/folder-open.png
0x0,0x0,0x8,0xf6,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x20,0x8f,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/tray-default.png
0x0,0x0,0x8,0x50,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0xc,0x24,
0x0,0x0,0x1,0x4c,0x73,0x65,0x8f,0x90,
// :/icons/icons/tree-add-root.png
0x0,0x0,0x2,0xc4,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x35,0xf9,
0x0,0x0,0x1,0x4c,0x76,0x14,0x2d,0x0,
// :/icons/icons/network-error.png
0x0,0x0,0x1,0xc8,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x25,0x94,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/format-indent-less.png
0x0,0x0,0x0,0x10,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x0,0x0,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/stoptracking-osx.png
0x0,0x0,0x4,0xa,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x6b,0x12,
0x0,0x0,0x1,0x4a,0x5e,0xad,0x43,0x88,
// :/icons/icons/tree-add-child-small.png
0x0,0x0,0x0,0x76,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x5,0xc,
0x0,0x0,0x1,0x4c,0x76,0x14,0x2d,0x0,
// :/icons/icons/edit-cut.png
0x0,0x0,0x3,0xbe,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x5d,0x60,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/empty.png
0x0,0x0,0x1,0xf0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x2c,0xc,
0x0,0x0,0x1,0x49,0xb4,0x73,0xfe,0x48,
// :/icons/icons/folder-new.png
0x0,0x0,0x3,0x2a,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x45,0x8b,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/tray-running.png
0x0,0x0,0x2,0x3c,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x2e,0xa2,
0x0,0x0,0x1,0x4c,0x7a,0xb6,0xd2,0x40,
// :/icons/icons/edit-find-replace.png
0x0,0x0,0x4,0xf2,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x95,0x43,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/process-stop.png
0x0,0x0,0x1,0x78,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x18,0x96,
0x0,0x0,0x1,0x4c,0x76,0x14,0x2d,0x0,
// :/icons/icons/format-justify-right.png
0x0,0x0,0x7,0xe0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x4,0x99,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/media-playback-stop.png
0x0,0x0,0x2,0x8,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x2c,0x63,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/list-add.png
0x0,0x0,0x1,0x36,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x14,0xf8,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/software-update-available.png
0x0,0x0,0x6,0xc8,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0xee,0x0,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/format-justify-center.png
0x0,0x0,0x6,0x68,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0xe3,0x2a,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/office-calendar.png
0x0,0x0,0x5,0x4a,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0xa6,0x2a,
0x0,0x0,0x1,0x4c,0x37,0x62,0x5,0x28,
// :/icons/icons/edit-select-all.png
0x0,0x0,0x2,0x98,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x33,0x7e,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/folder.png
0x0,0x0,0x3,0x10,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x40,0xef,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/edit-find.png
0x0,0x0,0x3,0x9e,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x56,0xf8,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/format-justify-fill.png
0x0,0x0,0x0,0x42,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x3,0x3,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/network-transmit.png
0x0,0x0,0x3,0xdc,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x65,0x8b,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/emblem-system.png
0x0,0x0,0x6,0xa0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0xe5,0x3c,
0x0,0x0,0x1,0x4c,0x76,0x14,0x2d,0x0,
// :/icons/icons/accessories-calculator.png
0x0,0x0,0x8,0x16,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x6,0xba,
0x0,0x0,0x1,0x4c,0x37,0x62,0x5,0x28,
// :/icons/icons/edit-delete.png
0x0,0x0,0x2,0xec,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x38,0xea,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/folder-saved-search.png
0x0,0x0,0x0,0xe0,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x8,0xd5,
0x0,0x0,0x1,0x4c,0x76,0x14,0x2d,0x0,
// :/icons/icons/format-justify-left.png
0x0,0x0,0x0,0xac,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x6,0xce,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/edit-paste.png
0x0,0x0,0x9,0x1a,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x25,0x33,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/document-new.png
0x0,0x0,0x6,0x42,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0xdf,0x36,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/edit-redo.png
0x0,0x0,0x8,0x9e,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0x14,0x9b,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/format-indent-more.png
0x0,0x0,0x7,0x8,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0xf4,0x9a,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/edit-clear.png
0x0,0x0,0x1,0x14,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0xe,0x62,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/format-text-bold.png
0x0,0x0,0x6,0x14,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0xd8,0xda,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/document-print.png
0x0,0x0,0x4,0x8a,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x88,0xc8,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/tree-add-root-small.png
0x0,0x0,0x7,0x3a,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0xf7,0x9c,
0x0,0x0,0x1,0x4c,0x76,0x14,0x2d,0x0,
// :/icons/icons/system-search.png
0x0,0x0,0x5,0x22,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x9d,0x7f,
0x0,0x0,0x1,0x4c,0x76,0x14,0x2d,0x0,
// :/icons/icons/network-receive.png
0x0,0x0,0x3,0x72,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x51,0x77,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/media-playback-start.png
0x0,0x0,0x2,0x62,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x2f,0x76,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
// :/icons/icons/applications-development.png
0x0,0x0,0x4,0xb4,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x8c,0xc1,
0x0,0x0,0x1,0x4c,0x76,0x14,0x2d,0x0,
// :/icons/icons/dialog-error.png
0x0,0x0,0x3,0x4c,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x0,0x4b,0x6,
0x0,0x0,0x1,0x4c,0x76,0x14,0x2d,0x0,
// :/icons/icons/document-save.png
0x0,0x0,0x8,0x76,0x0,0x0,0x0,0x0,0x0,0x1,0x0,0x1,0xc,0xe4,
0x0,0x0,0x1,0x48,0xc1,0x2c,0x35,0x48,
};
@ -5722,7 +5782,7 @@ int QT_RCC_MANGLE_NAMESPACE(qInitResources_mainwindow)();
int QT_RCC_MANGLE_NAMESPACE(qInitResources_mainwindow)()
{
QT_RCC_PREPEND_NAMESPACE(qRegisterResourceData)
(0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
(0x2, qt_resource_struct, qt_resource_name, qt_resource_data);
return 1;
}
@ -5730,7 +5790,7 @@ int QT_RCC_MANGLE_NAMESPACE(qCleanupResources_mainwindow)();
int QT_RCC_MANGLE_NAMESPACE(qCleanupResources_mainwindow)()
{
QT_RCC_PREPEND_NAMESPACE(qUnregisterResourceData)
(0x01, qt_resource_struct, qt_resource_name, qt_resource_data);
(0x2, qt_resource_struct, qt_resource_name, qt_resource_data);
return 1;
}

View File

@ -0,0 +1 @@
/*.pyc

View File

@ -0,0 +1,322 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""QDarkStyle is a dark stylesheet for Python and Qt applications.
This module provides a function to transparently load the stylesheets
with the correct rc file.
First, start importing our module
.. code-block:: python
import qdarkstyle
Then you can get stylesheet provided by QDarkStyle for various Qt wrappers
as shown bellow
.. code-block:: python
# PySide
dark_stylesheet = qdarkstyle.load_stylesheet_pyside()
# PySide
dark_stylesheet = qdarkstyle.load_stylesheet_pyside2()
# PyQt4
dark_stylesheet = qdarkstyle.load_stylesheet_pyqt()
# PyQt5
dark_stylesheet = qdarkstyle.load_stylesheet_pyqt5()
Or from environment variables provided for QtPy or PyQtGraph, see
.. code-block:: python
# QtPy
dark_stylesheet = qdarkstyle.load_stylesheet_from_environment()
# PyQtGraph
dark_stylesheet = qdarkstyle.load_stylesheet_from_environment(is_pyqtgraph)
Finally, set your QApplication with it
.. code-block:: python
app.setStyleSheet(dark_stylesheet)
Enjoy!
"""
import logging
import platform
import os
import warnings
__version__ = "2.6.0"
PYQTGRAPH_QT_LIB_VALUES = ['PyQt', 'PyQt5', 'PySide', 'PySide2']
QT_API_VALUES = ['pyqt', 'pyqt5', 'pyside', 'pyside2']
def _logger():
return logging.getLogger('qdarkstyle')
def _qt_wrapper_import(qt_api):
"""
Check if Qt API defined can be imported.
:param qt_api: Qt API string to test import
:return load function fot given qt_api, otherwise empty string
"""
qt_wrapper = ''
loader = ""
try:
if qt_api == 'PyQt' or qt_api == 'pyqt':
import PyQt4
qt_wrapper = 'PyQt4'
loader = load_stylesheet_pyqt()
elif qt_api == 'PyQt5' or qt_api == 'pyqt5':
import PyQt5
qt_wrapper = 'PyQt5'
loader = load_stylesheet_pyqt5()
elif qt_api == 'PySide' or qt_api == 'pyside':
import PySide
qt_wrapper = 'PySide'
loader = load_stylesheet_pyside()
elif qt_api == 'PySide2' or qt_api == 'pyside2':
import PySide2
qt_wrapper = 'PySide2'
loader = load_stylesheet_pyside2()
except ImportError as err:
_logger().error("Impossible import Qt wrapper.\n %s", str(err))
else:
_logger().info("Using Qt wrapper = %s ", qt_wrapper)
finally:
return loader
def load_stylesheet_from_environment(is_pyqtgraph=False):
"""
Load the stylesheet from QT_API (or PYQTGRAPH_QT_LIB) environment variable.
:param is_pyqtgraph: True if it is to be set using PYQTGRAPH_QT_LIB
:raise KeyError: if QT_API/PYQTGRAPH_QT_LIB does not exist
:return the stylesheet string
"""
warnings.warn(
"load_stylesheet_from_environment() will be deprecated in version 3,"
"use load_stylesheet()",
PendingDeprecationWarning
)
qt_api = ''
pyqtgraph_qt_lib = ''
loader = ""
# Get values from QT_API
try:
qt_api = os.environ['QT_API']
except KeyError as err:
# Log this error just if using QT_API
if not is_pyqtgraph:
_logger().error("QT_API does not exist, do os.environ['QT_API']= "
"and choose one option from %s", QT_API_VALUES)
else:
if not is_pyqtgraph:
if qt_api in QT_API_VALUES:
_logger().info("Found QT_API='%s'", qt_api)
loader = _qt_wrapper_import(qt_api)
else:
# Raise this error because the function need this key/value
raise KeyError("QT_API=%s is unknown, please use a value "
"from %s",
(qt_api, QT_API_VALUES))
# Get values from PYQTGRAPH_QT_LIB
try:
pyqtgraph_qt_lib = os.environ['PYQTGRAPH_QT_LIB']
except KeyError as err:
# Log this error just if using PYQTGRAPH_QT_LIB
if is_pyqtgraph:
_logger().error("PYQTGRAP_QT_API does not exist, do "
"os.environ['PYQTGRAPH_QT_LIB']= "
"and choose one option from %s",
PYQTGRAPH_QT_LIB_VALUES)
else:
if is_pyqtgraph:
if pyqtgraph_qt_lib in PYQTGRAPH_QT_LIB_VALUES:
_logger().info("Found PYQTGRAPH_QT_LIB='%s'", pyqtgraph_qt_lib)
loader = _qt_wrapper_import(pyqtgraph_qt_lib)
else:
# Raise this error because the function need this key/value
raise KeyError("PYQTGRAPH_QT_LIB=%s is unknown, please use a "
"value from %s", (
pyqtgraph_qt_lib,
PYQTGRAPH_QT_LIB_VALUES))
# Just a warning if both are set but differs each other
if qt_api and pyqtgraph_qt_lib:
if qt_api != pyqtgraph_qt_lib.lower():
_logger().warning("Both QT_API=%s and PYQTGRAPH_QT_LIB=%s are set, "
"but with different values, this could cause "
"some issues if using them in the same project!",
qt_api, pyqtgraph_qt_lib)
return loader
def load_stylesheet(pyside=True):
"""
Load the stylesheet. Takes care of importing the rc module.
:param pyside: True to load the pyside rc file, False to load the PyQt rc file
:return the stylesheet string
"""
warnings.warn(
"load_stylesheet() will not receive pyside parameter in version 3. "
"Set QtPy environment variable to specify the Qt binding insteady.",
FutureWarning
)
# Smart import of the rc file
pyside_ver = None
if pyside:
# Detect the PySide version available
try:
import PySide
except ModuleNotFoundError:
import PySide2
pyside_ver = 2
else:
pyside_ver = 1
if pyside_ver == 1:
import qdarkstyle.pyside_style_rc
else:
import qdarkstyle.pyside2_style_rc
else:
import qdarkstyle.pyqt_style_rc
# Load the stylesheet content from resources
if not pyside:
from PyQt4.QtCore import QFile, QTextStream
else:
if pyside_ver == 1:
from PySide.QtCore import QFile, QTextStream
else:
from PySide2.QtCore import QFile, QTextStream
f = QFile(":qdarkstyle/style.qss")
if not f.exists():
_logger().error("Unable to load stylesheet, file not found in "
"resources")
return ""
else:
f.open(QFile.ReadOnly | QFile.Text)
ts = QTextStream(f)
stylesheet = ts.readAll()
if platform.system().lower() == 'darwin': # see issue #12 on github
mac_fix = '''
QDockWidget::title
{
background-color: #31363b;
text-align: center;
height: 12px;
}
'''
stylesheet += mac_fix
return stylesheet
def load_stylesheet_pyside():
"""
Load the stylesheet for use in a pyside application.
:return the stylesheet string
"""
warnings.warn(
"load_stylesheet_pyside() will be deprecated in version 3,"
"set QtPy environment variable to specify the Qt binding and "
"use load_stylesheet()",
PendingDeprecationWarning
)
return load_stylesheet(pyside=True)
def load_stylesheet_pyside2():
"""
Load the stylesheet for use in a pyside2 application.
:raise NotImplementedError: Because it is not supported yet
"""
warnings.warn(
"load_stylesheet_pyside2() will be deprecated in version 3,"
"set QtPy environment variable to specify the Qt binding and "
"use load_stylesheet()",
PendingDeprecationWarning
)
return load_stylesheet(pyside=True)
def load_stylesheet_pyqt():
"""
Load the stylesheet for use in a pyqt4 application.
:return the stylesheet string
"""
warnings.warn(
"load_stylesheet_pyqt() will be deprecated in version 3,"
"set QtPy environment variable to specify the Qt binding and "
"use load_stylesheet()",
PendingDeprecationWarning
)
return load_stylesheet(pyside=False)
def load_stylesheet_pyqt5():
"""
Load the stylesheet for use in a pyqt5 application.
:param pyside: True to load the pyside rc file, False to load the PyQt rc file
:return the stylesheet string
"""
warnings.warn(
"load_stylesheet_pyqt5() will be deprecated in version 3,"
"set QtPy environment variable to specify the Qt binding and "
"use load_stylesheet()",
PendingDeprecationWarning
)
# Smart import of the rc file
import qdarkstyle.pyqt5_style_rc
# Load the stylesheet content from resources
from PyQt5.QtCore import QFile, QTextStream
f = QFile(":qdarkstyle/style.qss")
if not f.exists():
_logger().error("Unable to load stylesheet, file not found in "
"resources")
return ""
else:
f.open(QFile.ReadOnly | QFile.Text)
ts = QTextStream(f)
stylesheet = ts.readAll()
if platform.system().lower() == 'darwin': # see issue #12 on github
mac_fix = '''
QDockWidget::title
{
background-color: #31363b;
text-align: center;
height: 12px;
}
'''
stylesheet += mac_fix
return stylesheet

View File

@ -0,0 +1,54 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# The MIT License (MIT)
#
# Copyright (c) <2013-2014> <Colin Duquesnoy>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
# THE SOFTWARE.
#
"""
Utility scripts to compile the qrc file. The script will
attempt to compile the qrc file using the following tools:
- rcc
- pyside-rcc
- pyrcc4
Delete the compiled files that you don't want to use
manually after running this script.
"""
import os
def compile_all():
"""
Compile style.qrc using rcc, pyside-rcc and pyrcc4
"""
# print("Compiling for Qt: style.qrc -> style.rcc")
# os.system("rcc style.qrc -o style.rcc")
print("Compiling for PyQt4: style.qrc -> pyqt_style_rc.py")
os.system("pyrcc4 -py3 style.qrc -o pyqt_style_rc.py")
print("Compiling for PyQt5: style.qrc -> pyqt5_style_rc.py")
os.system("pyrcc5 style.qrc -o pyqt5_style_rc.py")
print("Compiling for PySide: style.qrc -> pyside_style_rc.py")
os.system("pyside-rcc -py3 style.qrc -o pyside_style_rc.py")
if __name__ == "__main__":
compile_all()

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 187 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 598 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 586 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 940 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 972 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 846 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 760 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 646 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 578 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

View File

@ -0,0 +1,46 @@
<RCC>
<qresource prefix="qss_icons">
<file>rc/up_arrow_disabled.png</file>
<file>rc/Hmovetoolbar.png</file>
<file>rc/stylesheet-branch-end.png</file>
<file>rc/branch_closed-on.png</file>
<file>rc/stylesheet-vline.png</file>
<file>rc/branch_closed.png</file>
<file>rc/branch_open-on.png</file>
<file>rc/transparent.png</file>
<file>rc/right_arrow_disabled.png</file>
<file>rc/sizegrip.png</file>
<file>rc/close.png</file>
<file>rc/close-hover.png</file>
<file>rc/close-pressed.png</file>
<file>rc/down_arrow.png</file>
<file>rc/Vmovetoolbar.png</file>
<file>rc/left_arrow.png</file>
<file>rc/stylesheet-branch-more.png</file>
<file>rc/up_arrow.png</file>
<file>rc/right_arrow.png</file>
<file>rc/left_arrow_disabled.png</file>
<file>rc/Hsepartoolbar.png</file>
<file>rc/branch_open.png</file>
<file>rc/Vsepartoolbar.png</file>
<file>rc/down_arrow_disabled.png</file>
<file>rc/undock.png</file>
<file>rc/checkbox_checked_disabled.png</file>
<file>rc/checkbox_checked_focus.png</file>
<file>rc/checkbox_checked.png</file>
<file>rc/checkbox_indeterminate.png</file>
<file>rc/checkbox_indeterminate_focus.png</file>
<file>rc/checkbox_unchecked_disabled.png</file>
<file>rc/checkbox_unchecked_focus.png</file>
<file>rc/checkbox_unchecked.png</file>
<file>rc/radio_checked_disabled.png</file>
<file>rc/radio_checked_focus.png</file>
<file>rc/radio_checked.png</file>
<file>rc/radio_unchecked_disabled.png</file>
<file>rc/radio_unchecked_focus.png</file>
<file>rc/radio_unchecked.png</file>
</qresource>
<qresource prefix="qdarkstyle">
<file>style.qss</file>
</qresource>
</RCC>

File diff suppressed because it is too large Load Diff

View File

@ -41,6 +41,8 @@
#define KEY_EXPANDED_TASKS "ExpandedTasks"
#define KEY_RECENT_TASKS "RecentTasks"
#define KEY_DARK_THEME "DarkTheme"
class Settings
{
public:

View File

@ -4,6 +4,7 @@
#include <QAbstractItemModel>
#include <QStyleOptionViewItem>
#include <QItemDelegate>
#include <QStyledItemDelegate>
#include <QTreeView>
#include <QMenu>

View File

@ -270,6 +270,11 @@ int TimeTreeModel::columnCount(const QModelIndex &parent) const
return 1;
}
static QString monthToString(int month)
{
return QDate::longMonthName(month);
}
QVariant TimeTreeModel::data(const QModelIndex &index, int role) const
{
if (!index.isValid())
@ -290,7 +295,7 @@ QVariant TimeTreeModel::data(const QModelIndex &index, int role) const
return QString::number(year);
case Level_Month:
return QString::number(month);
return monthToString(month);
case Level_Day:
return QString::number(day);

View File

@ -1,7 +1,7 @@
/********************************************************************************
** Form generated from reading UI file 'aboutdlg.ui'
**
** Created by: Qt User Interface Compiler version 5.6.2
** Created by: Qt User Interface Compiler version 5.9.5
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
@ -67,11 +67,11 @@ public:
void retranslateUi(QDialog *AboutDlg)
{
AboutDlg->setWindowTitle(QApplication::translate("AboutDlg", "Dialog", 0));
AboutDlg->setWindowTitle(QApplication::translate("AboutDlg", "Dialog", Q_NULLPTR));
mTextLabel->setText(QApplication::translate("AboutDlg", "werwre\n"
"werwer\n"
"", 0));
mLicenseLabel->setText(QApplication::translate("AboutDlg", "TextLabel", 0));
"", Q_NULLPTR));
mLicenseLabel->setText(QApplication::translate("AboutDlg", "TextLabel", Q_NULLPTR));
} // retranslateUi
};

View File

@ -1,7 +1,7 @@
/********************************************************************************
** Form generated from reading UI file 'attachmentsdialog.ui'
**
** Created by: Qt User Interface Compiler version 5.6.2
** Created by: Qt User Interface Compiler version 5.9.5
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
@ -69,8 +69,8 @@ public:
void retranslateUi(QDialog *AttachmentsDialog)
{
AttachmentsDialog->setWindowTitle(QApplication::translate("AttachmentsDialog", "Dialog", 0));
label->setText(QApplication::translate("AttachmentsDialog", "There is list of attachments in document. Use context menu or drag-and-drop to manage it.", 0));
AttachmentsDialog->setWindowTitle(QApplication::translate("AttachmentsDialog", "Dialog", Q_NULLPTR));
label->setText(QApplication::translate("AttachmentsDialog", "There is list of attachments in document. Use context menu or drag-and-drop to manage it.", Q_NULLPTR));
} // retranslateUi
};

View File

@ -1,7 +1,7 @@
/********************************************************************************
** Form generated from reading UI file 'attachmentslist.ui'
**
** Created by: Qt User Interface Compiler version 5.6.2
** Created by: Qt User Interface Compiler version 5.9.5
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
@ -66,19 +66,19 @@ public:
void retranslateUi(QWidget *AttachmentsList)
{
AttachmentsList->setWindowTitle(QApplication::translate("AttachmentsList", "Form", 0));
mRenameAction->setText(QApplication::translate("AttachmentsList", "Rename", 0));
AttachmentsList->setWindowTitle(QApplication::translate("AttachmentsList", "Form", Q_NULLPTR));
mRenameAction->setText(QApplication::translate("AttachmentsList", "Rename", Q_NULLPTR));
#ifndef QT_NO_TOOLTIP
mRenameAction->setToolTip(QApplication::translate("AttachmentsList", "Rename", 0));
mRenameAction->setToolTip(QApplication::translate("AttachmentsList", "Rename", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
mDeleteAction->setText(QApplication::translate("AttachmentsList", "Delete", 0));
mExportAction->setText(QApplication::translate("AttachmentsList", "Export...", 0));
mDeleteAction->setText(QApplication::translate("AttachmentsList", "Delete", Q_NULLPTR));
mExportAction->setText(QApplication::translate("AttachmentsList", "Export...", Q_NULLPTR));
#ifndef QT_NO_TOOLTIP
mExportAction->setToolTip(QApplication::translate("AttachmentsList", "Export", 0));
mExportAction->setToolTip(QApplication::translate("AttachmentsList", "Export", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
mImportAction->setText(QApplication::translate("AttachmentsList", "Import new...", 0));
mImportAction->setText(QApplication::translate("AttachmentsList", "Import new...", Q_NULLPTR));
#ifndef QT_NO_TOOLTIP
mImportAction->setToolTip(QApplication::translate("AttachmentsList", "Import", 0));
mImportAction->setToolTip(QApplication::translate("AttachmentsList", "Import", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
} // retranslateUi

View File

@ -1,7 +1,7 @@
/********************************************************************************
** Form generated from reading UI file 'finddialog.ui'
**
** Created by: Qt User Interface Compiler version 5.6.2
** Created by: Qt User Interface Compiler version 5.9.5
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
@ -82,9 +82,9 @@ public:
void retranslateUi(QDialog *FindDialog)
{
FindDialog->setWindowTitle(QApplication::translate("FindDialog", "Dialog", 0));
label->setText(QApplication::translate("FindDialog", "Text to search:", 0));
mSearchButton->setText(QApplication::translate("FindDialog", "Search", 0));
FindDialog->setWindowTitle(QApplication::translate("FindDialog", "Dialog", Q_NULLPTR));
label->setText(QApplication::translate("FindDialog", "Text to search:", Q_NULLPTR));
mSearchButton->setText(QApplication::translate("FindDialog", "Search", Q_NULLPTR));
} // retranslateUi
};

View File

@ -1,7 +1,7 @@
/********************************************************************************
** Form generated from reading UI file 'fvupdateconfirmdialog.ui'
**
** Created by: Qt User Interface Compiler version 5.6.2
** Created by: Qt User Interface Compiler version 5.9.5
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
@ -75,11 +75,11 @@ public:
void retranslateUi(QDialog *FvUpdateConfirmDialog)
{
FvUpdateConfirmDialog->setWindowTitle(QApplication::translate("FvUpdateConfirmDialog", "Software Update", 0));
updateFileIsLocatedLabel->setText(QApplication::translate("FvUpdateConfirmDialog", "The update file is located at:", 0));
updateFileLinkLabel->setText(QApplication::translate("FvUpdateConfirmDialog", "<a href=\"%1\">%1</a>", 0));
downloadThisUpdateLabel->setText(QApplication::translate("FvUpdateConfirmDialog", "Download this update, close \"%1\", install it, and then reopen \"%1\".", 0));
whenYouClickOkLabel->setText(QApplication::translate("FvUpdateConfirmDialog", "When you click \"OK\", this link will be opened in your browser.", 0));
FvUpdateConfirmDialog->setWindowTitle(QApplication::translate("FvUpdateConfirmDialog", "Software Update", Q_NULLPTR));
updateFileIsLocatedLabel->setText(QApplication::translate("FvUpdateConfirmDialog", "The update file is located at:", Q_NULLPTR));
updateFileLinkLabel->setText(QApplication::translate("FvUpdateConfirmDialog", "<a href=\"%1\">%1</a>", Q_NULLPTR));
downloadThisUpdateLabel->setText(QApplication::translate("FvUpdateConfirmDialog", "Download this update, close \"%1\", install it, and then reopen \"%1\".", Q_NULLPTR));
whenYouClickOkLabel->setText(QApplication::translate("FvUpdateConfirmDialog", "When you click \"OK\", this link will be opened in your browser.", Q_NULLPTR));
} // retranslateUi
};

View File

@ -1,7 +1,7 @@
/********************************************************************************
** Form generated from reading UI file 'fvupdatewindow.ui'
**
** Created by: Qt User Interface Compiler version 5.6.2
** Created by: Qt User Interface Compiler version 5.9.5
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
@ -116,13 +116,13 @@ public:
void retranslateUi(QWidget *FvUpdateWindow)
{
FvUpdateWindow->setWindowTitle(QApplication::translate("FvUpdateWindow", "Software Update", 0));
newVersionIsAvailableLabel->setText(QApplication::translate("FvUpdateWindow", "A new version of %1 is available!", 0));
wouldYouLikeToDownloadLabel->setText(QApplication::translate("FvUpdateWindow", "%1 %2 is now available - you have %3. Would you like to download it now?", 0));
groupBox->setTitle(QApplication::translate("FvUpdateWindow", "Release Notes:", 0));
skipThisVersionButton->setText(QApplication::translate("FvUpdateWindow", "Skip This Version", 0));
remindMeLaterButton->setText(QApplication::translate("FvUpdateWindow", "Remind Me Later", 0));
installUpdateButton->setText(QApplication::translate("FvUpdateWindow", "Install Update", 0));
FvUpdateWindow->setWindowTitle(QApplication::translate("FvUpdateWindow", "Software Update", Q_NULLPTR));
newVersionIsAvailableLabel->setText(QApplication::translate("FvUpdateWindow", "A new version of %1 is available!", Q_NULLPTR));
wouldYouLikeToDownloadLabel->setText(QApplication::translate("FvUpdateWindow", "%1 %2 is now available - you have %3. Would you like to download it now?", Q_NULLPTR));
groupBox->setTitle(QApplication::translate("FvUpdateWindow", "Release Notes:", Q_NULLPTR));
skipThisVersionButton->setText(QApplication::translate("FvUpdateWindow", "Skip This Version", Q_NULLPTR));
remindMeLaterButton->setText(QApplication::translate("FvUpdateWindow", "Remind Me Later", Q_NULLPTR));
installUpdateButton->setText(QApplication::translate("FvUpdateWindow", "Install Update", Q_NULLPTR));
} // retranslateUi
};

View File

@ -1,7 +1,7 @@
/********************************************************************************
** Form generated from reading UI file 'mainwindow.ui'
**
** Created by: Qt User Interface Compiler version 5.6.2
** Created by: Qt User Interface Compiler version 5.9.5
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
@ -488,95 +488,127 @@ public:
void retranslateUi(QMainWindow *MainWindow)
{
mSyncAction->setText(QApplication::translate("MainWindow", "S&ync...", 0));
mPrintAction->setText(QApplication::translate("MainWindow", "&Print...", 0));
mExitAction->setText(QApplication::translate("MainWindow", "E&xit", 0));
mPreferencesAction->setText(QApplication::translate("MainWindow", "Pre&ferences...", 0));
mSaveAction->setText(QApplication::translate("MainWindow", "&Save", 0));
mSaveAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+S", 0));
mDeleteTaskAction->setText(QApplication::translate("MainWindow", "Delete task", 0));
mSyncAction->setText(QApplication::translate("MainWindow", "S&ync...", Q_NULLPTR));
mPrintAction->setText(QApplication::translate("MainWindow", "&Print...", Q_NULLPTR));
mExitAction->setText(QApplication::translate("MainWindow", "E&xit", Q_NULLPTR));
mPreferencesAction->setText(QApplication::translate("MainWindow", "Pre&ferences...", Q_NULLPTR));
mSaveAction->setText(QApplication::translate("MainWindow", "&Save", Q_NULLPTR));
#ifndef QT_NO_SHORTCUT
mSaveAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+S", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
mDeleteTaskAction->setText(QApplication::translate("MainWindow", "Delete task", Q_NULLPTR));
#ifndef QT_NO_TOOLTIP
mDeleteTaskAction->setToolTip(QApplication::translate("MainWindow", "Delete task", 0));
mDeleteTaskAction->setToolTip(QApplication::translate("MainWindow", "Delete task", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
mRenameTaskAction->setText(QApplication::translate("MainWindow", "Rename task", 0));
mNewTaskAction->setText(QApplication::translate("MainWindow", "New child task", 0));
mNewTaskAction->setIconText(QApplication::translate("MainWindow", "New child task", 0));
mRenameTaskAction->setText(QApplication::translate("MainWindow", "Rename task", Q_NULLPTR));
mNewTaskAction->setText(QApplication::translate("MainWindow", "New child task", Q_NULLPTR));
mNewTaskAction->setIconText(QApplication::translate("MainWindow", "New child task", Q_NULLPTR));
#ifndef QT_NO_TOOLTIP
mNewTaskAction->setToolTip(QApplication::translate("MainWindow", "New child task", 0));
mNewTaskAction->setToolTip(QApplication::translate("MainWindow", "New child task", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
mNewTaskAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+Shift+N", 0));
mNewRootTaskAction->setText(QApplication::translate("MainWindow", "New root task", 0));
mNewRootTaskAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+N", 0));
mStartOrStopTrackingAction->setText(QApplication::translate("MainWindow", "Start tracking", 0));
mStartOrStopTrackingAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+T", 0));
mUndoEditAction->setText(QApplication::translate("MainWindow", "Undo", 0));
mUndoEditAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+Z", 0));
mRedoEditAction->setText(QApplication::translate("MainWindow", "Redo", 0));
mRedoEditAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+Shift+Z", 0));
mCutEditAction->setText(QApplication::translate("MainWindow", "Cut", 0));
mCutEditAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+X", 0));
mCopyEditAction->setText(QApplication::translate("MainWindow", "Copy", 0));
mCopyEditAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+C", 0));
mPasteEditAction->setText(QApplication::translate("MainWindow", "Paste", 0));
mPasteEditAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+V", 0));
mDeleteEditAction->setText(QApplication::translate("MainWindow", "Delete", 0));
mSelectAllEditAction->setText(QApplication::translate("MainWindow", "Select all note", 0));
mSelectAllEditAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+A", 0));
mAboutAction->setText(QApplication::translate("MainWindow", "About...", 0));
mTimelineAction->setText(QApplication::translate("MainWindow", "Timeline...", 0));
mTimeReportAction->setText(QApplication::translate("MainWindow", "Time report...", 0));
mShowToolbarAction->setText(QApplication::translate("MainWindow", "Show toolbar", 0));
mAttachmentsAction->setText(QApplication::translate("MainWindow", "Attachments", 0));
#ifndef QT_NO_SHORTCUT
mNewTaskAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+Shift+N", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
mNewRootTaskAction->setText(QApplication::translate("MainWindow", "New root task", Q_NULLPTR));
#ifndef QT_NO_SHORTCUT
mNewRootTaskAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+N", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
mStartOrStopTrackingAction->setText(QApplication::translate("MainWindow", "Start tracking", Q_NULLPTR));
#ifndef QT_NO_SHORTCUT
mStartOrStopTrackingAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+T", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
mUndoEditAction->setText(QApplication::translate("MainWindow", "Undo", Q_NULLPTR));
#ifndef QT_NO_SHORTCUT
mUndoEditAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+Z", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
mRedoEditAction->setText(QApplication::translate("MainWindow", "Redo", Q_NULLPTR));
#ifndef QT_NO_SHORTCUT
mRedoEditAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+Shift+Z", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
mCutEditAction->setText(QApplication::translate("MainWindow", "Cut", Q_NULLPTR));
#ifndef QT_NO_SHORTCUT
mCutEditAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+X", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
mCopyEditAction->setText(QApplication::translate("MainWindow", "Copy", Q_NULLPTR));
#ifndef QT_NO_SHORTCUT
mCopyEditAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+C", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
mPasteEditAction->setText(QApplication::translate("MainWindow", "Paste", Q_NULLPTR));
#ifndef QT_NO_SHORTCUT
mPasteEditAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+V", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
mDeleteEditAction->setText(QApplication::translate("MainWindow", "Delete", Q_NULLPTR));
mSelectAllEditAction->setText(QApplication::translate("MainWindow", "Select all note", Q_NULLPTR));
#ifndef QT_NO_SHORTCUT
mSelectAllEditAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+A", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
mAboutAction->setText(QApplication::translate("MainWindow", "About...", Q_NULLPTR));
mTimelineAction->setText(QApplication::translate("MainWindow", "Timeline...", Q_NULLPTR));
mTimeReportAction->setText(QApplication::translate("MainWindow", "Time report...", Q_NULLPTR));
mShowToolbarAction->setText(QApplication::translate("MainWindow", "Show toolbar", Q_NULLPTR));
mAttachmentsAction->setText(QApplication::translate("MainWindow", "Attachments", Q_NULLPTR));
#ifndef QT_NO_TOOLTIP
mAttachmentsAction->setToolTip(QApplication::translate("MainWindow", "View&edit attachments", 0));
mAttachmentsAction->setToolTip(QApplication::translate("MainWindow", "View&edit attachments", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
mCheckForUpdatesAction->setText(QApplication::translate("MainWindow", "Check for updates...", 0));
mTimeTrackableAction->setText(QApplication::translate("MainWindow", "Time trackable", 0));
mActionSearchInTasks->setText(QApplication::translate("MainWindow", "Find in tasks...", 0));
mActionSearchInTasks->setShortcut(QApplication::translate("MainWindow", "Ctrl+Shift+F", 0));
mActionSearch->setText(QApplication::translate("MainWindow", "Find...", 0));
mActionSearch->setShortcut(QApplication::translate("MainWindow", "Ctrl+F", 0));
mShowLittAction->setText(QApplication::translate("MainWindow", "Show Litt window", 0));
mCheckForUpdatesAction->setText(QApplication::translate("MainWindow", "Check for updates...", Q_NULLPTR));
mTimeTrackableAction->setText(QApplication::translate("MainWindow", "Time trackable", Q_NULLPTR));
mActionSearchInTasks->setText(QApplication::translate("MainWindow", "Find in tasks...", Q_NULLPTR));
#ifndef QT_NO_SHORTCUT
mActionSearchInTasks->setShortcut(QApplication::translate("MainWindow", "Ctrl+Shift+F", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
mActionSearch->setText(QApplication::translate("MainWindow", "Find...", Q_NULLPTR));
#ifndef QT_NO_SHORTCUT
mActionSearch->setShortcut(QApplication::translate("MainWindow", "Ctrl+F", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
mShowLittAction->setText(QApplication::translate("MainWindow", "Show Litt window", Q_NULLPTR));
#ifndef QT_NO_TOOLTIP
mShowLittAction->setToolTip(QApplication::translate("MainWindow", "Bring Litt window to foreground", 0));
mShowLittAction->setToolTip(QApplication::translate("MainWindow", "Bring Litt window to foreground", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
mFocusTaskTreeAction->setText(QApplication::translate("MainWindow", "Switch to task tree", 0));
mFocusTaskTreeAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+1", 0));
mFocusTaskTextAction->setText(QApplication::translate("MainWindow", "Switch to task text", 0));
mFocusTaskTextAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+2", 0));
mAddSiblingAction->setText(QApplication::translate("MainWindow", "Add sibling", 0));
mFocusTaskTreeAction->setText(QApplication::translate("MainWindow", "Switch to task tree", Q_NULLPTR));
#ifndef QT_NO_SHORTCUT
mFocusTaskTreeAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+1", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
mFocusTaskTextAction->setText(QApplication::translate("MainWindow", "Switch to task text", Q_NULLPTR));
#ifndef QT_NO_SHORTCUT
mFocusTaskTextAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+2", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
mAddSiblingAction->setText(QApplication::translate("MainWindow", "Add sibling", Q_NULLPTR));
#ifndef QT_NO_TOOLTIP
mAddSiblingAction->setToolTip(QApplication::translate("MainWindow", "Add sibling document", 0));
mAddSiblingAction->setToolTip(QApplication::translate("MainWindow", "Add sibling document", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
mDecreaseLevelAction->setText(QApplication::translate("MainWindow", "Decrease level", 0));
mDecreaseLevelAction->setText(QApplication::translate("MainWindow", "Decrease level", Q_NULLPTR));
#ifndef QT_NO_TOOLTIP
mDecreaseLevelAction->setToolTip(QApplication::translate("MainWindow", "Decrease document level", 0));
mDecreaseLevelAction->setToolTip(QApplication::translate("MainWindow", "Decrease document level", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
mIncreaseLevelAction->setText(QApplication::translate("MainWindow", "Increase level", 0));
mIncreaseLevelAction->setText(QApplication::translate("MainWindow", "Increase level", Q_NULLPTR));
#ifndef QT_NO_TOOLTIP
mIncreaseLevelAction->setToolTip(QApplication::translate("MainWindow", "Increase document level", 0));
mIncreaseLevelAction->setToolTip(QApplication::translate("MainWindow", "Increase document level", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
mMoveUpAction->setText(QApplication::translate("MainWindow", "Move up", 0));
mMoveUpAction->setText(QApplication::translate("MainWindow", "Move up", Q_NULLPTR));
#ifndef QT_NO_TOOLTIP
mMoveUpAction->setToolTip(QApplication::translate("MainWindow", "Move document up", 0));
mMoveUpAction->setToolTip(QApplication::translate("MainWindow", "Move document up", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
mMoveUpAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+Shift+Up", 0));
mMoveDownAction->setText(QApplication::translate("MainWindow", "Move down", 0));
#ifndef QT_NO_SHORTCUT
mMoveUpAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+Shift+Up", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
mMoveDownAction->setText(QApplication::translate("MainWindow", "Move down", Q_NULLPTR));
#ifndef QT_NO_TOOLTIP
mMoveDownAction->setToolTip(QApplication::translate("MainWindow", "Move document down", 0));
mMoveDownAction->setToolTip(QApplication::translate("MainWindow", "Move document down", Q_NULLPTR));
#endif // QT_NO_TOOLTIP
mMoveDownAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+Shift+Down", 0));
label->setText(QApplication::translate("MainWindow", "Find:", 0));
mTodayTextLabel->setText(QApplication::translate("MainWindow", "Today:", 0));
mTodaySpentTimeLabel->setText(QApplication::translate("MainWindow", "0 hours 0 minutes", 0));
mThisMonthTextLabel->setText(QApplication::translate("MainWindow", "This month:", 0));
mThisMonthSpentTimeLabel->setText(QApplication::translate("MainWindow", "0 hours 0 minutes", 0));
mFileMenu->setTitle(QApplication::translate("MainWindow", "&File", 0));
mEditMenu->setTitle(QApplication::translate("MainWindow", "Edit", 0));
mToolsMenu->setTitle(QApplication::translate("MainWindow", "&Tools", 0));
mStartRecentTaskMenu->setTitle(QApplication::translate("MainWindow", "Track recent task", 0));
mViewMenu->setTitle(QApplication::translate("MainWindow", "View", 0));
mMainToolbar->setWindowTitle(QApplication::translate("MainWindow", "Toolbar", 0));
#ifndef QT_NO_SHORTCUT
mMoveDownAction->setShortcut(QApplication::translate("MainWindow", "Ctrl+Shift+Down", Q_NULLPTR));
#endif // QT_NO_SHORTCUT
label->setText(QApplication::translate("MainWindow", "Find:", Q_NULLPTR));
mTodayTextLabel->setText(QApplication::translate("MainWindow", "Today:", Q_NULLPTR));
mTodaySpentTimeLabel->setText(QApplication::translate("MainWindow", "0 hours 0 minutes", Q_NULLPTR));
mThisMonthTextLabel->setText(QApplication::translate("MainWindow", "This month:", Q_NULLPTR));
mThisMonthSpentTimeLabel->setText(QApplication::translate("MainWindow", "0 hours 0 minutes", Q_NULLPTR));
mFileMenu->setTitle(QApplication::translate("MainWindow", "&File", Q_NULLPTR));
mEditMenu->setTitle(QApplication::translate("MainWindow", "Edit", Q_NULLPTR));
mToolsMenu->setTitle(QApplication::translate("MainWindow", "&Tools", Q_NULLPTR));
mStartRecentTaskMenu->setTitle(QApplication::translate("MainWindow", "Track recent task", Q_NULLPTR));
mViewMenu->setTitle(QApplication::translate("MainWindow", "View", Q_NULLPTR));
mMainToolbar->setWindowTitle(QApplication::translate("MainWindow", "Toolbar", Q_NULLPTR));
Q_UNUSED(MainWindow);
} // retranslateUi

View File

@ -1,7 +1,7 @@
/********************************************************************************
** Form generated from reading UI file 'newpassworddlg.ui'
**
** Created by: Qt User Interface Compiler version 5.6.2
** Created by: Qt User Interface Compiler version 5.9.5
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
@ -94,10 +94,10 @@ public:
void retranslateUi(QDialog *NewPasswordDlg)
{
NewPasswordDlg->setWindowTitle(QApplication::translate("NewPasswordDlg", "Password for new database", 0));
mNewPasswordLabel1->setText(QApplication::translate("NewPasswordDlg", "Password:", 0));
mNewPasswordLabel2->setText(QApplication::translate("NewPasswordDlg", "Repeat password:", 0));
mPasswordHintLabel->setText(QApplication::translate("NewPasswordDlg", "<html><head/><body><p>Please enter new password twice to complete database creation.</p> <p>Please be aware - there is no way to recover lost password.</p></body></html>", 0));
NewPasswordDlg->setWindowTitle(QApplication::translate("NewPasswordDlg", "Password for new database", Q_NULLPTR));
mNewPasswordLabel1->setText(QApplication::translate("NewPasswordDlg", "Password:", Q_NULLPTR));
mNewPasswordLabel2->setText(QApplication::translate("NewPasswordDlg", "Repeat password:", Q_NULLPTR));
mPasswordHintLabel->setText(QApplication::translate("NewPasswordDlg", "<html><head/><body><p>Please enter new password twice to complete database creation.</p> <p>Please be aware - there is no way to recover lost password.</p></body></html>", Q_NULLPTR));
} // retranslateUi
};

View File

@ -1,7 +1,7 @@
/********************************************************************************
** Form generated from reading UI file 'passworddlg.ui'
**
** Created by: Qt User Interface Compiler version 5.6.2
** Created by: Qt User Interface Compiler version 5.9.5
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
********************************************************************************/
@ -77,8 +77,8 @@ public:
void retranslateUi(QDialog *PasswordDlg)
{
PasswordDlg->setWindowTitle(QApplication::translate("PasswordDlg", "Password required", 0));
mPasswordLabel->setText(QApplication::translate("PasswordDlg", "Password:", 0));
PasswordDlg->setWindowTitle(QApplication::translate("PasswordDlg", "Password required", Q_NULLPTR));
mPasswordLabel->setText(QApplication::translate("PasswordDlg", "Password:", Q_NULLPTR));
} // retranslateUi
};

Some files were not shown because too many files have changed in this diff Show More