[rkward/frameworks] rkward/dialogs: Fix dialog layout

Thomas Friedrichsmeier thomas.friedrichsmeier at ruhr-uni-bochum.de
Tue Jan 26 13:27:35 UTC 2016


Git commit bfc8b299236cd6f5bc9f56725733c1f9d8b908cc by Thomas Friedrichsmeier.
Committed on 26/01/2016 at 13:27.
Pushed by tfry into branch 'frameworks'.

Fix dialog layout

M  +4    -3    rkward/dialogs/rkerrordialog.cpp

http://commits.kde.org/rkward/bfc8b299236cd6f5bc9f56725733c1f9d8b908cc

diff --git a/rkward/dialogs/rkerrordialog.cpp b/rkward/dialogs/rkerrordialog.cpp
index 6afe3a9..ca3aa5c 100644
--- a/rkward/dialogs/rkerrordialog.cpp
+++ b/rkward/dialogs/rkerrordialog.cpp
@@ -22,13 +22,14 @@
 #include <kmessagebox.h>
 #include <kvbox.h>
 #include <ktoolinvocation.h>
-#include <QIcon>
 
+#include <QIcon>
 #include <QLabel>
 #include <QTextEdit>
 #include <QTemporaryFile>
 #include <QTextStream>
 #include <QPushButton>
+#include <QDialog>
 
 #include "../rbackend/rinterface.h"
 #include "../rbackend/rksessionvars.h"
@@ -99,8 +100,8 @@ void RKErrorDialog::reportableErrorMessage (QWidget* parent_widget, const QStrin
 
 	if (!parent_widget) parent_widget = RKWardMainWindow::getMain ();
 	// adjusted from KMessageBox::detailedError
-	KDialog *dialog = new KDialog (parent_widget, Qt::Dialog);
-	dialog->setCaption (caption);
+	QDialog *dialog = new QDialog (parent_widget, Qt::Dialog);
+	dialog->setWindowTitle (caption);
 	QDialogButtonBox *buttonbox = new QDialogButtonBox (dialog);
 	if (details.isEmpty ()) buttonbox->setStandardButtons (QDialogButtonBox::Ok | QDialogButtonBox::No);
 	else {



More information about the rkward-tracker mailing list