fix #945
This commit is contained in:
parent
1b6f4a9dcd
commit
0891600884
@ -1000,3 +1000,12 @@ void FeedsView::onItemExpandRequested(const QList<RootItem*>& items, bool exp) {
|
|||||||
setExpanded(proxy_index, exp);
|
setExpanded(proxy_index, exp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void FeedsView::drawRow(QPainter* painter, const QStyleOptionViewItem& options, const QModelIndex& index) const {
|
||||||
|
// auto opts = options;
|
||||||
|
|
||||||
|
// opts.decorationAlignment = Qt::AlignmentFlag::AlignLeft;
|
||||||
|
// opts.decorationSize = {options.decorationSize.height(), options.decorationSize.height()};
|
||||||
|
|
||||||
|
BaseTreeView::drawRow(painter, options, index);
|
||||||
|
}
|
||||||
|
@ -144,6 +144,10 @@ class RSSGUARD_DLLSPEC FeedsView : public BaseTreeView {
|
|||||||
FeedsModel* m_sourceModel;
|
FeedsModel* m_sourceModel;
|
||||||
FeedsProxyModel* m_proxyModel;
|
FeedsProxyModel* m_proxyModel;
|
||||||
bool m_dontSaveExpandState;
|
bool m_dontSaveExpandState;
|
||||||
|
|
||||||
|
// QTreeView interface
|
||||||
|
protected:
|
||||||
|
virtual void drawRow(QPainter *painter, const QStyleOptionViewItem &options, const QModelIndex &index) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
inline FeedsProxyModel* FeedsView::model() const {
|
inline FeedsProxyModel* FeedsView::model() const {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>500</width>
|
<width>500</width>
|
||||||
<height>550</height>
|
<height>628</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
@ -133,6 +133,12 @@
|
|||||||
</item>
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<widget class="QGroupBox" name="m_groupFeeds">
|
<widget class="QGroupBox" name="m_groupFeeds">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>1</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
<property name="title">
|
<property name="title">
|
||||||
<string/>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user