Commit a931a680 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Checkable Messagebox: Fix layout, handle URL.

For usage with 709cb294.
parent 709cb294
...@@ -42,7 +42,7 @@ struct CheckableMessageBoxPrivate; ...@@ -42,7 +42,7 @@ struct CheckableMessageBoxPrivate;
/* A messagebox suitable for questions with a /* A messagebox suitable for questions with a
* "Do not ask me again" checkbox. Emulates the QMessageBox API with * "Do not ask me again" checkbox. Emulates the QMessageBox API with
* static conveniences. */ * static conveniences. The message label can open external URLs. */
class QTCREATOR_UTILS_EXPORT CheckableMessageBox : public QDialog class QTCREATOR_UTILS_EXPORT CheckableMessageBox : public QDialog
{ {
......
...@@ -2,14 +2,6 @@ ...@@ -2,14 +2,6 @@
<ui version="4.0"> <ui version="4.0">
<class>Utils::CheckableMessageBox</class> <class>Utils::CheckableMessageBox</class>
<widget class="QDialog" name="Utils::CheckableMessageBox"> <widget class="QDialog" name="Utils::CheckableMessageBox">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>195</width>
<height>107</height>
</rect>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Dialog</string> <string>Dialog</string>
</property> </property>
...@@ -19,7 +11,14 @@ ...@@ -19,7 +11,14 @@
<item> <item>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>
<widget class="QLabel" name="pixmapLabel"/> <widget class="QLabel" name="pixmapLabel">
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget>
</item> </item>
<item> <item>
<spacer name="pixmapSpacer"> <spacer name="pixmapSpacer">
...@@ -41,8 +40,23 @@ ...@@ -41,8 +40,23 @@
</item> </item>
<item> <item>
<widget class="QLabel" name="messageLabel"> <widget class="QLabel" name="messageLabel">
<property name="minimumSize">
<size>
<width>300</width>
<height>0</height>
</size>
</property>
<property name="text"> <property name="text">
<string>TextLabel</string> <string notr="true">dummyText</string>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
<property name="openExternalLinks">
<bool>true</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::LinksAccessibleByKeyboard|Qt::LinksAccessibleByMouse</set>
</property> </property>
</widget> </widget>
</item> </item>
...@@ -66,7 +80,7 @@ ...@@ -66,7 +80,7 @@
<item> <item>
<widget class="QCheckBox" name="checkBox"> <widget class="QCheckBox" name="checkBox">
<property name="text"> <property name="text">
<string>CheckBox</string> <string notr="true">CheckBox</string>
</property> </property>
</widget> </widget>
</item> </item>
......
Supports Markdown
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