Bugzilla – Attachment 51593 Details for
Bug 119090
Qt/KDE Integration Bug
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
kdebase-SuSE patch
suse119090.patch (text/plain), 1.72 KB, created by
Lubos Lunak
on 2005-10-06 13:05:31 UTC
(
hide
)
Description:
kdebase-SuSE patch
Filename:
MIME Type:
Creator:
Lubos Lunak
Created:
2005-10-06 13:05:31 UTC
Size:
1.72 KB
patch
obsolete
>--- qtkdeintegration/module/module.cpp.sav 2005-07-22 15:08:15.000000000 +0200 >+++ qtkdeintegration/module/module.cpp 2005-10-06 14:58:12.000000000 +0200 >@@ -136,6 +136,15 @@ void* Module::getFont( bool /*ok*/, cons > return dlg; > } > >+namespace >+{ >+struct btns >+ { >+ int buttons[ 3 ]; >+ }; >+} >+static QMap< KDialogBase*, btns > msgbox1_buttons; >+ > void* Module::messageBox1( int type, long parent, const QString& caption, const QString& text, > int button0, int button1, int button2, const QCString& wmclass1, const QCString& wmclass2 ) > { >@@ -211,6 +220,11 @@ void* Module::messageBox1( int type, lon > prepareDialog( dialog, parent, wmclass1, wmclass2 ); > dialog->setPlainCaption( caption ); > connect( dialog, SIGNAL( dialogDone( int )), SLOT( dialogDone( int ))); >+ btns b; >+ b.buttons[ 0 ] = buttons[ 0 ]; >+ b.buttons[ 1 ] = buttons[ 1 ]; >+ b.buttons[ 2 ] = buttons[ 2 ]; >+ msgbox1_buttons[ dialog ] = b; > dialog->show(); > return dialog; > } >@@ -290,13 +304,15 @@ void Module::dialogDone( int result ) > case JobData::MessageBox1: > { > KDialogBase* dlg = static_cast< KDialogBase* >( handle ); >+ btns b = msgbox1_buttons[ dlg ]; > int res; > if( result == KDialogBase::Cancel ) >- res = 2; >+ res = b.buttons[ 2 ]; > else if( result == KDialogBase::Yes ) >- res = 0; >+ res = b.buttons[ 0 ]; > else >- res = 1; >+ res = b.buttons[ 1 ]; >+ msgbox1_buttons.remove( dlg ); > post_messageBox1( dlg, res ); > // if (checkboxResult) > // saveDontShowAgainYesNo(dontAskAgainName, res);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 119090
:
51000
| 51593