--- a/src/gui.h Thu May 09 02:28:39 2013 +0300 +++ b/src/gui.h Thu May 09 03:58:51 2013 +0300 @@ -37,6 +37,7 @@ class color; class QSplitter; class DelHistory; +class QToolButton; // Stuff for dialogs #define IMPLEMENT_DIALOG_BUTTONS \ @@ -78,7 +79,7 @@ // ============================================================================= typedef struct { color* col; - QPushButton* btn; + QToolButton* btn; bool bSeparator; } quickColorMetaEntry; @@ -169,7 +170,7 @@ std::vector<QToolBar*> m_toolBars; std::vector<LDObject*> m_sel; std::vector<quickColorMetaEntry> m_colorMeta; - std::vector<QPushButton*> m_colorButtons; + std::vector<QToolButton*> m_colorButtons; std::vector<QAction*> m_recentFiles; void createMenuActions (); @@ -244,6 +245,7 @@ bool confirm (str msg); void critical (str msg); QAction* findAction (str name); +QIcon makeColorIcon (color* colinfo, const ushort size); void makeColorSelector (QComboBox* box); // -----------------------------------------------------------------------------