------------------------------------------------------------
revno: 100
committer: Aurelien Gateau <[email protected]>
branch nick: plasma-indicatordisplay
timestamp: Thu 2009-10-08 16:12:08 +0200
message:
  Make sure dialog resizes horizontally when content changes
modified:
  src/view.cpp
  src/view.h


--
lp:plasma-indicatordisplay
https://code.launchpad.net/~agateau/plasma-indicatordisplay/trunk

Your team ayatana-commits is subscribed to branch lp:plasma-indicatordisplay.
To unsubscribe from this branch go to 
https://code.launchpad.net/~agateau/plasma-indicatordisplay/trunk/+edit-subscription.
=== modified file 'src/view.cpp'
--- src/view.cpp	2009-08-11 10:32:01 +0000
+++ src/view.cpp	2009-10-08 14:12:08 +0000
@@ -77,6 +77,12 @@
     QTimer::singleShot(0, this, SLOT(adjustSizeTightly()));
 }
 
+void ExpandedTreeView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight)
+{
+    QTreeView::dataChanged(topLeft, bottomRight);
+    QTimer::singleShot(0, this, SLOT(adjustSizeTightly()));
+}
+
 void ExpandedTreeView::reset()
 {
     QTreeView::reset();

=== modified file 'src/view.h'
--- src/view.h	2009-08-11 10:32:01 +0000
+++ src/view.h	2009-10-08 14:12:08 +0000
@@ -35,6 +35,8 @@
 
     virtual void rowsAboutToBeRemoved(const QModelIndex& parent, int start, int end);
 
+    virtual void dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight);
+
     virtual void reset();
 
     virtual void drawTree(QPainter*, const QRegion&) const;

_______________________________________________
Mailing list: https://launchpad.net/~ayatana-commits
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~ayatana-commits
More help   : https://help.launchpad.net/ListHelp

Reply via email to