|
@@ -12284,14 +12284,21 @@ void SqlComboBox::addSqlOptions(QString query)
|
12284
|
12284
|
delete dbquery;
|
12285
|
12285
|
}
|
12286
|
12286
|
|
12287
|
|
-@ The constructor only needs to initialize some private member data. The
|
12288
|
|
-destructor has even less to do.
|
|
12287
|
+@ The constructor initializes some private member data. A size policy is also
|
|
12288
|
+set on the pop up. This allows the pop up to appear wider than the combo box to
|
|
12289
|
+allow more data to appear. On Linux this appears to also change the text elide
|
|
12290
|
+mode to something that is conveniently more appropriate for the use cases in
|
|
12291
|
+Typica. Note that this was not enough of a change to force the pop up to be
|
|
12292
|
+wide enough to contain all of the text for especially long items, but if the
|
|
12293
|
+combo box is wide enough the pop up will match that width.
|
|
12294
|
+
|
|
12295
|
+The destructor is trivial.
|
12289
|
12296
|
|
12290
|
12297
|
@<SqlComboBox Implementation@>=
|
12291
|
12298
|
SqlComboBox::SqlComboBox() :
|
12292
|
12299
|
dataColumn(0), displayColumn(0), dataColumnShown(false)
|
12293
|
12300
|
{
|
12294
|
|
- /* Nothing needs to be done here. */
|
|
12301
|
+ view()->setSizePolicy(QSizePolicy::Minimum, QSizePolicy::Minimum);
|
12295
|
12302
|
}
|
12296
|
12303
|
|
12297
|
12304
|
SqlComboBox::~SqlComboBox()
|