kleopatra
appearanceconfigwidget.cpp
Go to the documentation of this file.
127 QFont font = v.isValid() && v.type() == QVariant::Font ? v.value<QFont>() : tryToFindFontFor( item ) ;
148 item->setText( name.isEmpty() ? i18nc("Key filter without user-assigned name", "<unnamed>") : name );
190 static void erase_if_allowed( QListWidgetItem * item, const int role[], size_t numRoles, int allowRole ) {
196 static void erase_if_allowed( QListWidgetItem * item, int role, const int allowRole[], size_t numAllowRoles ) {
206 static void erase_if_allowed( QListWidgetItem * item, const int role[], size_t numRoles, const int allowRole[], size_t numAllowRoles ) {
334 connect( tooltipValidityCheckBox, SIGNAL(toggled(bool)), q, SLOT(slotTooltipValidityChanged(bool)) );
336 connect( tooltipDetailsCheckBox, SIGNAL(toggled(bool)), q, SLOT(slotTooltipDetailsChanged(bool)) );
437 const QStringList groups = config->groupList().filter( QRegExp( QLatin1String("^Key Filter #\\d+$") ) );
464 const QStringList groups = config->groupList().filter( QRegExp( QLatin1String("^Key Filter #\\d+$") ) );
509 const QColor initial = v.isValid() ? v.value<QColor>() : categoriesLV->palette().color( QPalette::Normal, QPalette::Text );
525 const QColor initial = v.isValid() ? v.value<QColor>() : categoriesLV->palette().color( QPalette::Normal, QPalette::Base );
545 const QFont initial = v.isValid() && v.type() == QVariant::Font ? v.value<QFont>() : defaultFont ;
virtual QString text(int column) const
AppearanceConfigWidget(QWidget *parent=0, Qt::WindowFlags f=0)
Definition: appearanceconfigwidget.cpp:365
static void apply_config(const KConfigGroup &group, QListWidgetItem *item)
Definition: appearanceconfigwidget.cpp:143
void defaults()
Definition: appearanceconfigwidget.cpp:415
Definition: appearanceconfigwidget.cpp:84
QListWidget * listWidget() const
static void set(QListWidgetItem *item, bool on, void(QFont::*func)(bool))
Definition: appearanceconfigwidget.cpp:123
static bool is_strikeout(const QListWidgetItem *item)
Definition: appearanceconfigwidget.cpp:118
T value() const
Definition: appearanceconfigwidget.cpp:88
static void save_to_config(const QListWidgetItem *item, KConfigGroup &group)
Definition: appearanceconfigwidget.cpp:249
Definition: appearanceconfigwidget.cpp:83
static bool is(const QListWidgetItem *item, bool(QFont::*func)() const )
Definition: appearanceconfigwidget.cpp:103
bool bold() const
int size() const
bool italic() const
const QColor & color() const
Q3ListViewItem * current() const
void setBold(bool enable)
static void erase_if_allowed(QListWidgetItem *item, int role, int allowRole)
Definition: appearanceconfigwidget.cpp:184
void changed()
void setEnabled(bool)
QFont font()
static void writeOrDelete(KConfigGroup &group, const char *key, const QVariant &value)
Definition: appearanceconfigwidget.cpp:232
bool empty() const
static bool is_italic(const QListWidgetItem *item)
Definition: appearanceconfigwidget.cpp:112
static QFont tryToFindFontFor(const QListWidgetItem *item)
Definition: appearanceconfigwidget.cpp:96
bool isEmpty() const
void setObjectName(const QString &name)
bool isEmpty() const
~AppearanceConfigWidget()
Definition: appearanceconfigwidget.cpp:372
virtual QVariant data(int role) const
T & front()
Definition: commands/command.h:46
Definition: appearanceconfigwidget.cpp:81
Definition: appearanceconfigwidget.cpp:91
void setIcon(const QIcon &icon)
static void set_italic(QListWidgetItem *item, bool on)
Definition: appearanceconfigwidget.cpp:132
virtual void setData(int role, const QVariant &value)
QColor getColor(const QColor &initial, QWidget *parent, const QString &title, QFlags< QColorDialog::ColorDialogOption > options)
void setItalic(bool enable)
static void set_strikeout(QListWidgetItem *item, bool on)
Definition: appearanceconfigwidget.cpp:138
Definition: appearanceconfigwidget.cpp:82
static void set_default_appearance(QListWidgetItem *item)
Definition: appearanceconfigwidget.cpp:216
Definition: appearanceconfigwidget.cpp:87
static void set_bold(QListWidgetItem *item, bool on)
Definition: appearanceconfigwidget.cpp:135
void setStrikeOut(bool enable)
bool toBool() const
bool isValid() const
typedef WindowFlags
Definition: appearanceconfigwidget.cpp:93
void setToolTip(const QString &)
QStringList filter(const QString &str, Qt::CaseSensitivity cs) const
bool strikeOut() const
Type type() const
static void kiosk_enable(QWidget *w, const QListWidgetItem *item, int allowRole)
Definition: appearanceconfigwidget.cpp:275
QString text() const
Definition: appearanceconfigwidget.cpp:89
void setText(const QString &text)
bool isValid() const
QFont getFont(bool *ok, const QFont &initial, QWidget *parent, const QString &title, QFlags< QFontDialog::FontDialogOption > options)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:10 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.