krazy fixes: Qt classes that should not be used.

Nice KColorDialog used now in stead of the Qt one.

svn path=/trunk/KDE/kdepim/; revision=886748
wilder-work
Bertjan Broeksema 18 years ago
parent 538cab795b
commit b67638c718
  1. 17
      messagelistview/core/themeeditor.cpp
  2. 6
      messagelistview/core/themeeditor.h

@ -30,14 +30,12 @@
#include <QActionGroup>
#include <QCheckBox>
#include <QColorDialog>
#include <QCursor>
#include <QDrag>
#include <QGridLayout>
#include <QGroupBox>
#include <QHeaderView>
#include <QLabel>
#include <QLineEdit>
#include <QMouseEvent>
#include <QTextEdit>
#include <QTreeWidget>
@ -47,7 +45,9 @@
#include <QPushButton>
#include <QStringList>
#include <KColorDialog>
#include <KComboBox>
#include <KLineEdit>
#include <KLocale>
#include <KFontDialog>
#include <KMenu>
@ -88,7 +88,7 @@ ThemeColumnPropertiesDialog::ThemeColumnPropertiesDialog( QWidget * parent, Them
l = new QLabel( i18nc( "@label:textbox Property name", "Name:" ), base );
g->addWidget( l, 0, 0 );
mNameEdit = new QLineEdit( base );
mNameEdit = new KLineEdit( base );
mNameEdit->setToolTip( i18n( "The label that will be displayed in the column header." ) );
g->addWidget( mNameEdit, 0, 1 );
@ -1055,8 +1055,9 @@ void ThemePreviewWidget::slotForegroundColorMenuTriggered( QAction * act )
return;
}
QColor clr = QColorDialog::getColor( mSelectedThemeContentItem->customColor(), this );
if ( !clr.isValid() )
QColor clr;
int result = KColorDialog::getColor( clr, mSelectedThemeContentItem->customColor(), this );
if ( result != KColorDialog::Accepted )
return;
mSelectedThemeContentItem->setCustomColor( clr );
@ -1118,9 +1119,11 @@ void ThemePreviewWidget::slotGroupHeaderBackgroundModeMenuTriggered( QAction * a
break;
case Theme::CustomColor:
{
QColor clr = QColorDialog::getColor( mTheme->groupHeaderBackgroundColor(), this );
if ( !clr.isValid() )
QColor clr;
int result = KColorDialog::getColor( clr, mTheme->groupHeaderBackgroundColor(), this );
if ( result != KColorDialog::Accepted )
return;
mTheme->setGroupHeaderBackgroundMode( Theme::CustomColor );
mTheme->setGroupHeaderBackgroundColor( clr );
}

@ -31,10 +31,12 @@
#include <KDialog>
class KComboBox;
class QPaintDevice;
class QCheckBox;
class KComboBox;
class KLineEdit;
namespace KMail
{
@ -57,7 +59,7 @@ public:
protected:
Theme::Column * mColumn;
QLineEdit * mNameEdit;
KLineEdit * mNameEdit;
QCheckBox * mVisibleByDefaultCheck;
QCheckBox * mIsSenderOrReceiverCheck;
KComboBox * mMessageSortingCombo;

Loading…
Cancel
Save