ossp-pkg/as/as-gui/as_assist.cpp 1.113 -> 1.114
--- as_assist.cpp 2003/02/27 13:57:47 1.113
+++ as_assist.cpp 2003/02/28 17:13:25 1.114
@@ -887,15 +887,20 @@
throw Genexcept("Main window task edit creation failed.");
m_pTasks->insertStringList(*m_pTaskentries);
m_pTasks->setCurrentText(NULL);
+ m_pTasks->setSizeLimit(TITRAQ_ACCTBOXHEIGHT);
m_pTasks->setAutoCompletion(true);
m_pTasks->setDuplicatesEnabled(false);
m_pTasks->setEnabled(false);
// m_pTasks->setEditable(false); // Only idiots define noneditable and autocompletion
// Add an auto scroll bar if possible under current GUI style
- if (m_pTasks->listBox()) // Motif style has no list box
+ if (m_pTasks->listBox()) { // Motif style has no list box
+ int nPopupwidth = m_pTasks->listBox()->maxItemWidth();
+ nPopupwidth += m_pTasks->listBox()->horizontalScrollBar()->height();
+ m_pTasks->listBox()->setFixedWidth(nPopupwidth);
m_pTasks->listBox()->setHScrollBarMode(QScrollView::Auto);
-// m_pTasks->setMinimumWidth(m_pTasks->listBox()->maxItemWidth());
+ m_pTasks->listBox()->sort();
+ }
// Whatsthis info for the task editor
const char *kszTasktext = "Choose a <em>task account</em> by clicking on "
|
|