kdf
kdfwidget.cpp
Go to the documentation of this file.
72 m_columnList.append( Column( QLatin1String( "Device" ), i18nc("Device of the storage", "Device"), 100, DeviceCol ));
73 m_columnList.append( Column( QLatin1String( "Type" ), i18nc("Filesystem on storage", "Type"), 80, TypeCol ));
74 m_columnList.append( Column( QLatin1String( "Size" ), i18nc("Total size of the storage", "Size"), 80, SizeCol ));
75 m_columnList.append( Column( QLatin1String( "MountPoint" ), i18nc("Mount point of storage", "Mount Point"), 120, MountPointCol ));
76 m_columnList.append( Column( QLatin1String( "Free" ), i18nc("Free space in storage", "Free"), 80, FreeCol ));
77 m_columnList.append( Column( QLatin1String( "Full%" ), i18nc("Used storage space in %", "Full %"), 50, FullCol ));
78 m_columnList.append( Column( QLatin1String( "UsageBar" ), i18nc("Usage graphical bar", "Usage"), 200, UsageBarCol ));
109 mIsTopLevel = QLatin1String(parent->metaObject()->className()) == QLatin1String( "KDFTopLevel" ) ? true : false;
320 QStandardItem * IconItem = new QStandardItem( generateIcon(disk->iconName(), root, disk->mounted() ), QLatin1String( "" ) );
340 m_listModel->appendRow( QList<QStandardItem*>() << IconItem << DeviceItem << TypeItem << SizeItem << MountPointItem <<
void customContextMenuRequested(const QPoint &pos)
Definition: disks.h:30
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
void setIcon(const QIcon &icon)
Definition: kdfwidget.h:73
Definition: kdfitemdelegate.h:28
QAbstractEventDispatcher * instance(QThread *thread)
QItemSelectionModel * selectionModel() const
Definition: kdfsortproxymodel.h:26
virtual void setSourceModel(QAbstractItemModel *sourceModel)
DisksConstIterator disksConstIteratorBegin()
Definition: disklist.h:75
Definition: kdfwidget.h:77
void moveSection(int from, int to)
const T & at(int i) const
visible
QPoint mapToGlobal(const QPoint &pos) const
virtual bool removeRows(int row, int count, const QModelIndex &parent)
virtual const QMetaObject * metaObject() const
void setHorizontalHeaderLabels(const QStringList &labels)
void sortByColumn(int column, Qt::SortOrder order)
QString text() const
bool isColumnHidden(int column) const
int size() const
virtual void setData(const QVariant &value, int role)
Definition: kdfwidget.h:72
int visualIndex(int logicalIndex) const
int width() const
QSize size() const
bool isValid() const
int columnWidth(int column) const
void setColumnWidth(int column, int width)
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
Definition: kdfwidget.h:75
int count(const T &value) const
void append(const T &value)
bool isEmpty() const
QModelIndexList selectedIndexes() const
void setItemDelegate(QAbstractItemDelegate *delegate)
int row() const
QPoint pos() const
void setEditTriggers(QFlags< QAbstractItemView::EditTrigger > triggers)
Definition: optiondialog.h:28
Definition: kdfwidget.h:43
void setMargin(int margin)
void setColumnHidden(int column, bool hide)
QStandardItem * item(int row, int column) const
bool contains(QChar ch, Qt::CaseSensitivity cs) const
void setContextMenuPolicy(Qt::ContextMenuPolicy policy)
Definition: kdfwidget.h:76
const char * className() const
void setText(const QString &text)
QString & replace(int position, int n, QChar after)
int startTimer(int interval)
void setSortingEnabled(bool enable)
virtual QModelIndex mapToSource(const QModelIndex &proxyIndex) const
Qt::SortOrder sortOrder() const
Definition: kdfwidget.h:78
virtual void setModel(QAbstractItemModel *model)
void deleteAllMountedAt(const QString &mountpoint)
Definition: disklist.cpp:498
virtual int rowCount(const QModelIndex &parent) const
Definition: kdfwidget.h:71
QHeaderView * header() const
Definition: kdfwidget.h:74
void setRootIsDecorated(bool show)
virtual void sort(int column, Qt::SortOrder order)
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
int sortColumn() const
void appendRow(const QList< QStandardItem * > &items)
void setEnabled(bool)
int count() const
void setSpacing(int spacing)
virtual QModelIndex indexAt(const QPoint &point) const
QByteArray encodeName(const QString &fileName)
void setUpdatesDisabled(bool disable)
Updated need to be disabled sometimes to avoid pulling the DiskEntry out from the popupmenu handler...
Definition: disklist.cpp:102
virtual bool unregisterTimers(QObject *object)=0
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:23 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:42:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.