From cbb11bc62e0dde5a4cd9dff033d38824d175c816 Mon Sep 17 00:00:00 2001 From: Allen Winter Date: Wed, 20 Jun 2007 01:52:11 +0000 Subject: [PATCH] add __GNUC__ guards on the #warnings svn path=/trunk/KDE/kdepim/; revision=677833 --- kmcomposewin.cpp | 2 ++ recipientseditor.cpp | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/kmcomposewin.cpp b/kmcomposewin.cpp index e51c4dfd4..a78d4aa5a 100644 --- a/kmcomposewin.cpp +++ b/kmcomposewin.cpp @@ -595,7 +595,9 @@ void KMComposeWin::readColorConfig( void ) mPalette = qApp->palette(); mPalette.setColor( QPalette::Base, mBackColor ); mPalette.setColor( QPalette::Text, mForeColor ); +#ifdef __GNUC__ # warning "FIXME: Do we need to call setDisabled/setActive/setInactive or are the setColor calls enough??" +#endif // mPalette.setDisabled(cgrp); // mPalette.setActive(cgrp); // mPalette.setInactive(cgrp); diff --git a/recipientseditor.cpp b/recipientseditor.cpp index 4dbe517d1..687fee4d2 100644 --- a/recipientseditor.cpp +++ b/recipientseditor.cpp @@ -500,7 +500,9 @@ void RecipientsView::slotDeleteLine() unsigned int firstCC = 0; for( int i = pos; i < mLines.count(); ++i ) { RecipientLine *line = mLines.at( i ); +#ifdef __GNUC__ #warning port from Q3ScrollView +#endif //moveChild( line, childX( line ), childY( line ) - mLineHeight ); if ( line->recipientType() == Recipient::To ) atLeastOneToLine = true; @@ -526,7 +528,9 @@ void RecipientsView::resizeView() void RecipientsView::activateLine( RecipientLine *line ) { line->activate(); +#ifdef __GNUC__ #warning port from Q3ScrollView +#endif //ensureVisible( 0, childY( line ) ); } @@ -650,7 +654,9 @@ void RecipientsView::setFocusTop() void RecipientsView::setFocusBottom() { +#ifdef __GNUC__ #warning port from Q3ScrollView +#endif RecipientLine *line = mLines.last(); if ( line ) line->activate(); else kWarning() << "No last" << endl;