From 6de6a1f46a16d76cc99638cfa7d23de9a35b3ced Mon Sep 17 00:00:00 2001 From: Szymon Stefanek Date: Wed, 23 Apr 2008 13:12:49 +0000 Subject: [PATCH] Ifdefed out setStyleDependantFrameWidth() which doesn't seem to make sense anymore. Delete if nobody complains within a reasonable timeframe. svn path=/trunk/KDE/kdepim/; revision=800146 --- kmmimeparttree.cpp | 8 +++++++- kmmimeparttree.h | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/kmmimeparttree.cpp b/kmmimeparttree.cpp index a3c1d2add..82048ab11 100644 --- a/kmmimeparttree.cpp +++ b/kmmimeparttree.cpp @@ -55,7 +55,10 @@ KMMimePartTree::KMMimePartTree( KMReaderWin* readerWin, : QTreeWidget( parent ), mReaderWin( readerWin ), mLayoutColumnsOnFirstShow( false ) { +#if 0 + /* FIXME: Remove this ifdefed code if nobody complains (2008.04.23) */ setStyleDependantFrameWidth(); +#endif // Setup the header QStringList headerNames; @@ -300,6 +303,9 @@ void KMMimePartTree::slotSaveAll() command->start(); } +#if 0 + /* FIXME: Remove this ifdefed code if nobody complains (2008.04.23) */ + //----------------------------------------------------------------------------- void KMMimePartTree::setStyleDependantFrameWidth() { @@ -319,13 +325,13 @@ void KMMimePartTree::setStyleDependantFrameWidth() setLineWidth( frameWidth ); } - //----------------------------------------------------------------------------- void KMMimePartTree::styleChange( QStyle& oldStyle ) { setStyleDependantFrameWidth(); QTreeWidget::styleChange( oldStyle ); } +#endif //----------------------------------------------------------------------------- void KMMimePartTree::correctSize( QTreeWidgetItem * item ) diff --git a/kmmimeparttree.h b/kmmimeparttree.h index aefc34ba1..a5c504a0d 100644 --- a/kmmimeparttree.h +++ b/kmmimeparttree.h @@ -85,15 +85,21 @@ protected slots: void slotCopy(); protected: +#if 0 + /* FIXME: Remove this ifdefed code if nobody complains (2008.04.23) */ /** reimplemented in order to update the frame width in case of a changed GUI style FIXME: Still needed with Qt4 ? */ virtual void styleChange( QStyle& oldStyle ); +#endif virtual void startDrag( Qt::DropActions actions ); virtual void showEvent( QShowEvent* e ); +#if 0 + /* FIXME: Remove this ifdefed code if nobody complains (2008.04.23) */ /** Set the width of the frame to a reasonable value for the current GUI style */ void setStyleDependantFrameWidth(); +#endif void restoreLayoutIfPresent(); void startHandleAttachmentCommand( int action ); void saveSelectedBodyParts( bool encoded );