26 #if defined (HAVE_CONFIG_H)
30 #include <QApplication>
37 QColor
gui_settings::get_color_value (const QVariant& def,
int mode)
const
43 if (def.canConvert (QMetaType::QColor))
44 default_color = def.
value<QColor> ();
49 default_color = QApplication::palette ().color
50 (
static_cast<QPalette::ColorRole
> (def.toInt ()));
59 default_color.getHslF (&h, &s, &l, &a);
60 qreal l_new = 1.0-l*0.85;
63 default_color.setHslF (h, s, l_new, a);
74 QVariant (default_color)).value<QColor> ();
78 const QColor& color,
int mode)
98 QKeySequence key_seq = QKeySequence ();
104 key_seq = QKeySequence (pref.
def);
105 else if (pref.
def_std != QKeySequence::UnknownKey)
106 key_seq = QKeySequence (pref.
def_std);
QKeySequence sc_def_value(const sc_pref &pref) const
QColor color_value(const gui_pref &pref, int mode=0) const
QColor get_color_value(const QVariant &def, int mode=0) const
void set_color_value(const gui_pref &pref, const QColor &color, int mode=0)
QVariant value(const gui_pref &pref) const
QString sc_value(const sc_pref &pref) const
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
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