kalarm
alarmlistview.cpp
Go to the documentation of this file.
63 header()->setStretchLastSection(true); // necessary to ensure ResizeToContents columns do resize to contents!
65 header()->resizeSection(ALARM_LIST_MODEL::ColourColumn, viewOptions().fontMetrics.lineSpacing() * 3 / 4);
66 header()->resizeSection(ALARM_LIST_MODEL::TypeColumn, ALARM_LIST_MODEL::iconWidth() + 2*margin + 2);
KDEPIM_EXPORT void saveState(QWidget *widget, KConfigGroup &config)
void setMovable(bool movable)
void selectTimeColumns(bool time, bool timeTo)
Definition: alarmlistview.cpp:83
AlarmListView(const QByteArray &configGroup, QWidget *parent=0)
Definition: alarmlistview.cpp:40
Definition: eventlistview.h:37
bool restoreState(const QByteArray &state)
virtual int pixelMetric(PixelMetric metric, const QStyleOption *option, const QWidget *widget) const =0
void resizeSection(int logicalIndex, int size)
bool isSectionHidden(int logicalIndex) const
const char * constData() const
QFontMetrics fontMetrics() const
QStyle * style()
virtual void setModel(QAbstractItemModel *model)
void setResizeMode(ResizeMode mode)
virtual QStyleOptionViewItem viewOptions() const
QHeaderView * header() const
void setStretchLastSection(bool stretch)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void setSectionHidden(int logicalIndex, bool hide)
int lineSpacing() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:51 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:34:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.