diff --git a/src/backtracewidget.cpp b/src/backtracewidget.cpp
--- a/src/backtracewidget.cpp
+++ b/src/backtracewidget.cpp
@@ -143,25 +143,6 @@
ui.m_copyButton->setEnabled(false);
ui.m_saveButton->setEnabled(false);
-
- adjustWindowSize();
-}
-
-void BacktraceWidget::adjustWindowSize()
-{
- // We substantially change label content in-place so the window might need
- // resizing to fit everything again. This should get called whenever label
- // content is changed.
- // We'll only increase our size but never shrink it. Shrinking would almost
- // always screw with user expectation (e.g. button position or manually
- // resized window).
- // https://bugs.kde.org/show_bug.cgi?id=406748
- // https://bugs.kde.org/show_bug.cgi?id=337319
- const auto hint = window()->sizeHint();
- const auto size = window()->size();
- if (hint.width() > size.width() || hint.height() > size.height()) {
- window()->adjustSize();
- }
}
//Force backtrace generation
@@ -212,8 +193,6 @@
"click Reload."));
ui.m_installDebugButton->setVisible(false);
ui.m_reloadBacktraceButton->setEnabled(true);
-
- adjustWindowSize();
}
void BacktraceWidget::loadData()
@@ -333,8 +312,6 @@
ui.m_reloadBacktraceButton->setEnabled(true);
- adjustWindowSize();
-
emit stateChanged();
}
diff --git a/src/bugzillaintegration/reportassistantdialog.cpp b/src/bugzillaintegration/reportassistantdialog.cpp
--- a/src/bugzillaintegration/reportassistantdialog.cpp
+++ b/src/bugzillaintegration/reportassistantdialog.cpp
@@ -164,8 +164,10 @@
addPage(m_bugzillaPreviewPage);
addPage(m_bugzillaSendPage);
- setMinimumSize(QSize(600, 400));
- resize(minimumSize());
+ // Force a 16:9 ratio for nice appearance by default.
+ QSize aspect(16, 9);
+ aspect.scale(sizeHint(), Qt::KeepAspectRatioByExpanding);
+ resize(aspect);
}
ReportAssistantDialog::~ReportAssistantDialog()
diff --git a/src/drkonqidialog.cpp b/src/drkonqidialog.cpp
--- a/src/drkonqidialog.cpp
+++ b/src/drkonqidialog.cpp
@@ -73,18 +73,19 @@
}
m_backtraceWidget = new BacktraceWidget(DrKonqi::debuggerManager()->backtraceGenerator(), this);
- m_backtraceWidget->setMinimumSize(QSize(575, 240));
m_tabWidget->addTab(m_backtraceWidget, i18nc("@title:tab", "&Developer Information"));
m_tabWidget->tabBar()->setVisible(m_tabWidget->count() > 1);
buildDialogButtons();
- setMinimumSize(QSize(640,320));
- resize(minimumSize());
-
KWindowConfig::restoreWindowSize(windowHandle(), config);
setLayout(l);
+
+ // Force a 16:9 ratio for nice appearance by default.
+ QSize aspect(16, 9);
+ aspect.scale(sizeHint(), Qt::KeepAspectRatioByExpanding);
+ resize(aspect);
}
DrKonqiDialog::~DrKonqiDialog()
diff --git a/src/ui/backtracewidget.ui b/src/ui/backtracewidget.ui
--- a/src/ui/backtracewidget.ui
+++ b/src/ui/backtracewidget.ui
@@ -31,7 +31,16 @@
0
-
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
0
-
@@ -41,7 +50,16 @@
-
+
+ 4
+
+
+ 4
+
+
+ 4
+
+
4
-
@@ -70,6 +88,12 @@
-
+
+
+ 0
+ 0
+
+
true
@@ -140,6 +164,12 @@
-
+
+
+ 0
+ 0
+
+
Qt::RichText
diff --git a/src/ui/maindialog.ui b/src/ui/maindialog.ui
--- a/src/ui/maindialog.ui
+++ b/src/ui/maindialog.ui
@@ -33,6 +33,12 @@
-
+
+
+ 0
+ 0
+
+
@@ -43,6 +49,12 @@
-
+
+
+ 0
+ 0
+
+
@@ -70,6 +82,12 @@
-
+
+
+ 0
+ 0
+
+
@@ -80,6 +98,12 @@
-
+
+
+ 0
+ 0
+
+