src/guiutilities.cpp

changeset 986
525921eae58c
parent 978
4603d8fd063e
child 1012
413ecd6b9801
equal deleted inserted replaced
985:ed7b31b9f904 986:525921eae58c
79 it.key(), it.key().name(), it.value(), plural (it.value()))); 79 it.key(), it.key().name(), it.value(), plural (it.value())));
80 box->setItemData (row, it.key().index()); 80 box->setItemData (row, it.key().index());
81 ++row; 81 ++row;
82 } 82 }
83 } 83 }
84
85 QColor GuiUtilities::mainColorRepresentation()
86 {
87 QColor col (m_config->mainColor());
88
89 if (not col.isValid())
90 return QColor (0, 0, 0);
91
92 col.setAlpha (m_config->mainColorAlpha() * 255.f);
93 return col;
94 }

mercurial