Commit 40548028 authored by Kurt Hindenburg's avatar Kurt Hindenburg

Use static getColor instead of dialog->exec

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=1107401
parent 84b7864f
...@@ -120,18 +120,18 @@ void ColorSchemeEditor::editColorItem( QTableWidgetItem* item ) ...@@ -120,18 +120,18 @@ void ColorSchemeEditor::editColorItem( QTableWidgetItem* item )
if ( item->column() != 1 ) if ( item->column() != 1 )
return; return;
KColorDialog* dialog = new KColorDialog(this); QColor color = item->background().color();
dialog->setColor( item->background().color() ); int result = KColorDialog::getColor( color );
if ( result == KColorDialog::Accepted ) {
dialog->exec(); item->setBackground( color );
item->setBackground( dialog->color() ); ColorEntry entry( _colors->colorEntry(item->row()) );
entry.color = color;
ColorEntry entry(_colors->colorEntry(item->row())); _colors->setColorTableEntry( item->row(), entry );
entry.color = dialog->color();
_colors->setColorTableEntry(item->row(),entry); emit colorsChanged( _colors );
emit colorsChanged(_colors); }
} }
void ColorSchemeEditor::setDescription(const QString& text) void ColorSchemeEditor::setDescription(const QString& text)
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment