26#if defined (HAVE_CONFIG_H)
30#include <QApplication>
44 if (def.canConvert (QMetaType::QColor))
45 default_color = def.value<QColor> ();
50 default_color = QApplication::palette ().color
51 (
static_cast<QPalette::ColorRole
> (def.toInt ()));
60 default_color.getHslF (&h, &s, &l, &a);
61 qreal l_new = 1.0-l*0.85;
64 default_color.setHslF (h, s, l_new, a);
75 QVariant (default_color)).value<QColor> ();
79 const QColor& color,
int mode)
99 QKeySequence key_seq = QKeySequence ();
105 key_seq = QKeySequence (pref.
def);
106 else if (pref.
def_std != QKeySequence::UnknownKey)
107 key_seq = QKeySequence (pref.
def_std);
QVariant value(const gui_pref &pref) const
QKeySequence sc_def_value(const sc_pref &pref) const
void set_color_value(const gui_pref &pref, const QColor &color, int mode=0)
QColor color_value(const gui_pref &pref, int mode=0) const
QColor get_color_value(const QVariant &def, int mode=0) const
QString sc_value(const sc_pref &pref) const
const QString sc_group("shortcuts/")
const QColor settings_color_no_change(255, 0, 255)
const QStringList settings_color_modes_ext(QStringList()<< ""<< "_2")
const QKeySequence::StandardKey def_std