mirror of https://github.com/CGAL/cgal
Add a layout in the dialog
That way, the dialog, and its content, resizes itself when needed. + Capitalize a sentence in the dialog
This commit is contained in:
parent
ad7738646d
commit
f04cfc327a
|
|
@ -6,8 +6,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>353</width>
|
<width>339</width>
|
||||||
<height>144</height>
|
<height>105</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
|
@ -25,82 +25,60 @@
|
||||||
<property name="sizeGripEnabled">
|
<property name="sizeGripEnabled">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
<widget class="QDialogButtonBox" name="buttonBox">
|
<layout class="QVBoxLayout" name="verticalLayout">
|
||||||
<property name="geometry">
|
<item>
|
||||||
<rect>
|
<widget class="QLabel" name="label">
|
||||||
<x>170</x>
|
<property name="sizePolicy">
|
||||||
<y>80</y>
|
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
||||||
<width>181</width>
|
<horstretch>0</horstretch>
|
||||||
<height>32</height>
|
<verstretch>0</verstretch>
|
||||||
</rect>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="layoutDirection">
|
<property name="text">
|
||||||
<enum>Qt::LeftToRight</enum>
|
<string>TextLabel</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="orientation">
|
</widget>
|
||||||
<enum>Qt::Horizontal</enum>
|
</item>
|
||||||
</property>
|
<item>
|
||||||
<property name="standardButtons">
|
<widget class="QComboBox" name="pluginBox">
|
||||||
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
<property name="statusTip">
|
||||||
</property>
|
<string/>
|
||||||
</widget>
|
</property>
|
||||||
<widget class="QComboBox" name="pluginBox">
|
<property name="whatsThis">
|
||||||
<property name="geometry">
|
<string/>
|
||||||
<rect>
|
</property>
|
||||||
<x>30</x>
|
<property name="accessibleName">
|
||||||
<y>40</y>
|
<string/>
|
||||||
<width>321</width>
|
</property>
|
||||||
<height>31</height>
|
</widget>
|
||||||
</rect>
|
</item>
|
||||||
</property>
|
<item>
|
||||||
<property name="statusTip">
|
<widget class="QDialogButtonBox" name="buttonBox">
|
||||||
<string/>
|
<property name="layoutDirection">
|
||||||
</property>
|
<enum>Qt::LeftToRight</enum>
|
||||||
<property name="whatsThis">
|
</property>
|
||||||
<string/>
|
<property name="orientation">
|
||||||
</property>
|
<enum>Qt::Horizontal</enum>
|
||||||
<property name="accessibleName">
|
</property>
|
||||||
<string/>
|
<property name="standardButtons">
|
||||||
</property>
|
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
|
||||||
</widget>
|
</property>
|
||||||
<widget class="QCheckBox" name="alwaysUse">
|
</widget>
|
||||||
<property name="geometry">
|
</item>
|
||||||
<rect>
|
<item>
|
||||||
<x>30</x>
|
<widget class="QCheckBox" name="alwaysUse">
|
||||||
<y>120</y>
|
<property name="sizePolicy">
|
||||||
<width>281</width>
|
<sizepolicy hsizetype="Minimum" vsizetype="Expanding">
|
||||||
<height>26</height>
|
<horstretch>0</horstretch>
|
||||||
</rect>
|
<verstretch>0</verstretch>
|
||||||
</property>
|
</sizepolicy>
|
||||||
<property name="sizePolicy">
|
</property>
|
||||||
<sizepolicy hsizetype="Minimum" vsizetype="Expanding">
|
<property name="text">
|
||||||
<horstretch>0</horstretch>
|
<string/>
|
||||||
<verstretch>0</verstretch>
|
</property>
|
||||||
</sizepolicy>
|
</widget>
|
||||||
</property>
|
</item>
|
||||||
<property name="text">
|
</layout>
|
||||||
<string/>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
<widget class="QLabel" name="label">
|
|
||||||
<property name="geometry">
|
|
||||||
<rect>
|
|
||||||
<x>0</x>
|
|
||||||
<y>10</y>
|
|
||||||
<width>371</width>
|
|
||||||
<height>21</height>
|
|
||||||
</rect>
|
|
||||||
</property>
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Preferred" vsizetype="Expanding">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>TextLabel</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</widget>
|
</widget>
|
||||||
<resources/>
|
<resources/>
|
||||||
<connections>
|
<connections>
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ class File_loader_dialog : public QDialog, private Ui::FileLoaderDialog
|
||||||
dialog.pluginBox->addItems(item_list);
|
dialog.pluginBox->addItems(item_list);
|
||||||
dialog.label->setText(tr("Available loaders for %1 :").arg(filename));
|
dialog.label->setText(tr("Available loaders for %1 :").arg(filename));
|
||||||
QFileInfo fileinfo(filename);
|
QFileInfo fileinfo(filename);
|
||||||
dialog.alwaysUse->setText(tr("use for &all *.%1 files in this session").arg(fileinfo.completeSuffix()) );
|
dialog.alwaysUse->setText(tr("Use for &all *.%1 files in this session").arg(fileinfo.completeSuffix()) );
|
||||||
*ok = dialog.exec();
|
*ok = dialog.exec();
|
||||||
return std::make_pair(
|
return std::make_pair(
|
||||||
dialog.pluginBox->currentText(),
|
dialog.pluginBox->currentText(),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue