mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 10:22:58 -05:00
Format
This commit is contained in:
@ -2,17 +2,17 @@
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
const char *labelColorNames[] = {
|
const char *labelColorNames[] = {
|
||||||
QT_TR_NOOP("red"),
|
QT_TR_NOOP("red"),
|
||||||
QT_TR_NOOP("orange"),
|
QT_TR_NOOP("orange"),
|
||||||
QT_TR_NOOP("yellow"),
|
QT_TR_NOOP("yellow"),
|
||||||
QT_TR_NOOP("green"),
|
QT_TR_NOOP("green"),
|
||||||
QT_TR_NOOP("cyan"),
|
QT_TR_NOOP("cyan"),
|
||||||
QT_TR_NOOP("blue"),
|
QT_TR_NOOP("blue"),
|
||||||
QT_TR_NOOP("violet"),
|
QT_TR_NOOP("violet"),
|
||||||
QT_TR_NOOP("purple"),
|
QT_TR_NOOP("purple"),
|
||||||
QT_TR_NOOP("pink"),
|
QT_TR_NOOP("pink"),
|
||||||
QT_TR_NOOP("white"),
|
QT_TR_NOOP("white"),
|
||||||
QT_TR_NOOP("light"),
|
QT_TR_NOOP("light"),
|
||||||
QT_TR_NOOP("dark")
|
QT_TR_NOOP("dark")
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@ -244,4 +244,3 @@ void InfoComicsView::applyTheme(const Theme &theme)
|
|||||||
|
|
||||||
ctxt->setContextProperty("showDropShadow", QVariant(qv.showDropShadow));
|
ctxt->setContextProperty("showDropShadow", QVariant(qv.showDropShadow));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -29,7 +29,7 @@ private:
|
|||||||
QPushButton *close;
|
QPushButton *close;
|
||||||
QPushButton *accept;
|
QPushButton *accept;
|
||||||
QLabel *qrCode;
|
QLabel *qrCode;
|
||||||
|
|
||||||
// Labels for themable styling
|
// Labels for themable styling
|
||||||
QLabel *titleLabel;
|
QLabel *titleLabel;
|
||||||
QLabel *qrMessageLabel;
|
QLabel *qrMessageLabel;
|
||||||
|
|||||||
@ -18,7 +18,7 @@ class EditShortcutsDialog : public QDialog, protected Themable
|
|||||||
public:
|
public:
|
||||||
explicit EditShortcutsDialog(QWidget *parent = 0);
|
explicit EditShortcutsDialog(QWidget *parent = 0);
|
||||||
void addActionsGroup(const QString &name, const QIcon &ico, QList<QAction *> &group);
|
void addActionsGroup(const QString &name, const QIcon &ico, QList<QAction *> &group);
|
||||||
void setGroupIconMapping(const QMap<QString, std::function<QIcon(const Theme&)>> &mapping);
|
void setGroupIconMapping(const QMap<QString, std::function<QIcon(const Theme &)>> &mapping);
|
||||||
signals:
|
signals:
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
@ -33,8 +33,8 @@ protected:
|
|||||||
QListView *actionsGroupsListView;
|
QListView *actionsGroupsListView;
|
||||||
QTableView *actionsTableView;
|
QTableView *actionsTableView;
|
||||||
ActionsGroupsModel *groupsModel;
|
ActionsGroupsModel *groupsModel;
|
||||||
|
|
||||||
QMap<QString, std::function<QIcon(const Theme&)>> groupIconMapping;
|
QMap<QString, std::function<QIcon(const Theme &)>> groupIconMapping;
|
||||||
ActionsShortcutsModel *actionsModel;
|
ActionsShortcutsModel *actionsModel;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user