From f0d6a723916bf033793341b85dd23959b7e3742c Mon Sep 17 00:00:00 2001 From: Montel Laurent Date: Tue, 26 Feb 2013 08:07:09 +0100 Subject: [PATCH] now we depend against grantlee >= 0.3 --- CMakeLists.txt | 3 --- configuredialog.cpp | 7 ------- kmcomposewin.cpp | 13 ------------- 3 files changed, 23 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6dbb21ff7..00dc3277b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,9 +2,6 @@ project(kmail) include(CheckIncludeFiles) -if(GRANTLEE_GREATER_0_2) - add_definitions(-DGRANTLEE_GREATER_0_2) -endif() if (NOT WINCE) diff --git a/configuredialog.cpp b/configuredialog.cpp index 1596ea81f..ae1304727 100644 --- a/configuredialog.cpp +++ b/configuredialog.cpp @@ -2251,15 +2251,8 @@ ComposerPageGeneralTab::ComposerPageGeneralTab( QWidget * parent ) mImprovePlainTextOfHtmlMessage = new QCheckBox( MessageComposer::MessageComposerSettings::self()->improvePlainTextOfHtmlMessageItem()->label(), this ); vlay->addWidget( mImprovePlainTextOfHtmlMessage ); -#ifdef GRANTLEE_GREATER_0_2 connect( mImprovePlainTextOfHtmlMessage, SIGNAL(stateChanged(int)), this, SLOT(slotEmitChanged()) ); -#else - mImprovePlainTextOfHtmlMessage->setWhatsThis( - i18n( "To support improving the plain text of HTML messages, KMail must be compiled " - "with Grantlee 0.3 or greater." ) ); - mImprovePlainTextOfHtmlMessage->setEnabled(false); -#endif mQuoteSelectionOnlyCheck = new QCheckBox( MessageComposer::MessageComposerSettings::self()->quoteSelectionOnlyItem()->label(), this ); diff --git a/kmcomposewin.cpp b/kmcomposewin.cpp index c1afd3e53..9634220b7 100644 --- a/kmcomposewin.cpp +++ b/kmcomposewin.cpp @@ -2921,7 +2921,6 @@ void KMComposeWin::enableHtml() void KMComposeWin::disableHtml( Message::ComposerViewBase::Confirmation confirmation ) { bool forcePlainTextMarkup = false; -#ifdef GRANTLEE_GREATER_0_2 if ( confirmation == Message::ComposerViewBase::LetUserConfirm && mComposerBase->editor()->isFormattingUsed() && !mForceDisableHtml ) { int choice = KMessageBox::warningYesNoCancel( this, i18n( "Turning HTML mode off " "will cause the text to lose the formatting. Are you sure?" ), @@ -2939,18 +2938,6 @@ void KMComposeWin::disableHtml( Message::ComposerViewBase::Confirmation confirma break; } } -#else - if ( confirmation == Message::ComposerViewBase::LetUserConfirm && mComposerBase->editor()->isFormattingUsed() && !mForceDisableHtml ) { - int choice = KMessageBox::warningContinueCancel( this, i18n( "Turning HTML mode off " - "will cause the text to lose the formatting. Are you sure?" ), - i18n( "Lose the formatting?" ), KGuiItem( i18n( "Lose Formatting" ) ), KStandardGuiItem::cancel(), - "LoseFormattingWarning" ); - if ( choice != KMessageBox::Continue ) { - enableHtml(); - return; - } - } -#endif mComposerBase->editor()->forcePlainTextMarkup(forcePlainTextMarkup); mComposerBase->editor()->switchToPlainText();