59 QList<LDQuickColor> quickColors; |
59 QList<LDQuickColor> quickColors; |
60 |
60 |
61 private: |
61 private: |
62 Ui_ConfigUI* ui; |
62 Ui_ConfigUI* ui; |
63 QList<QListWidgetItem*> quickColorItems; |
63 QList<QListWidgetItem*> quickColorItems; |
64 QMap<QPushButton*, QColor> _buttonColors; |
64 QMap<QPushButton*, QColor> m_buttonColors; |
65 |
65 |
66 void applySettings(); |
66 void applySettings(); |
67 void addShortcut (QAction* act); |
67 void addShortcut (QAction* act); |
68 void setButtonBackground (QPushButton* button, QString value); |
68 void setButtonBackground (QPushButton* button, QString value); |
69 void updateQuickColorList (LDQuickColor* sel = null); |
69 void updateQuickColorList (LDQuickColor* sel = null); |
71 int getItemRow (QListWidgetItem* item, QList<QListWidgetItem*>& haystack); |
71 int getItemRow (QListWidgetItem* item, QList<QListWidgetItem*>& haystack); |
72 QString quickColorString(); |
72 QString quickColorString(); |
73 QListWidgetItem* getSelectedQuickColor(); |
73 QListWidgetItem* getSelectedQuickColor(); |
74 QList<ShortcutListItem*> getShortcutSelection(); |
74 QList<ShortcutListItem*> getShortcutSelection(); |
75 void initExtProgs(); |
75 void initExtProgs(); |
76 void _applyToWidgetOptions (std::function<void (QWidget*, AbstractConfigEntry*)> func); |
76 void m_applyToWidgetOptions (std::function<void (QWidget*, AbstractConfigEntry*)> func); |
77 |
77 |
78 private slots: |
78 private slots: |
79 void setButtonColor(); |
79 void setButtonColor(); |
80 void slot_setShortcut(); |
80 void slot_setShortcut(); |
81 void slot_resetShortcut(); |
81 void slot_resetShortcut(); |