mirror of
https://github.com/martinrotter/rssguard.git
synced 2025-01-10 07:13:32 +01:00
Dont draw branches.
This commit is contained in:
parent
ef6721feee
commit
116a0cc053
@ -12,6 +12,7 @@
|
||||
#include <QHeaderView>
|
||||
#include <QContextMenuEvent>
|
||||
#include <QPointer>
|
||||
#include <QPainter>
|
||||
|
||||
|
||||
FeedsView::FeedsView(QWidget *parent) : QTreeView(parent), m_contextMenu(NULL) {
|
||||
@ -145,6 +146,7 @@ void FeedsView::setupAppearance() {
|
||||
setSortingEnabled(true);
|
||||
setItemsExpandable(true);
|
||||
setExpandsOnDoubleClick(true);
|
||||
setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||
setIndentation(10);
|
||||
sortByColumn(0, Qt::AscendingOrder);
|
||||
setDragDropMode(QAbstractItemView::NoDragDrop);
|
||||
@ -185,3 +187,10 @@ void FeedsView::contextMenuEvent(QContextMenuEvent *event) {
|
||||
|
||||
m_contextMenu->exec(event->globalPos());
|
||||
}
|
||||
|
||||
void FeedsView::drawBranches(QPainter *painter, const QRect &rect, const QModelIndex &index) const {
|
||||
Q_UNUSED(painter)
|
||||
Q_UNUSED(rect)
|
||||
Q_UNUSED(index);
|
||||
// NOTE: Don't draw branches at all.
|
||||
}
|
||||
|
@ -60,6 +60,8 @@ class FeedsView : public QTreeView {
|
||||
// Show custom context menu.
|
||||
void contextMenuEvent(QContextMenuEvent *event);
|
||||
|
||||
void drawBranches(QPainter *painter, const QRect &rect, const QModelIndex &index) const;
|
||||
|
||||
signals:
|
||||
// Emitted if currently selected feeds needs to be reloaded.
|
||||
void feedsNeedToBeReloaded(int mark_current_index_read);
|
||||
|
@ -110,6 +110,7 @@ void MessagesView::setupAppearance() {
|
||||
setDragDropMode(QAbstractItemView::NoDragDrop);
|
||||
setExpandsOnDoubleClick(false);
|
||||
setRootIsDecorated(false);
|
||||
setEditTriggers(QAbstractItemView::NoEditTriggers);
|
||||
setItemsExpandable(false);
|
||||
setSortingEnabled(true);
|
||||
setAllColumnsShowFocus(true);
|
||||
|
Loading…
Reference in New Issue
Block a user