CMake refactoring
This commit is contained in:
@@ -1243,7 +1243,7 @@ void QCodeEdit::invokeAutoCompletition(bool force) {
|
||||
hideHelp();
|
||||
return;
|
||||
}
|
||||
acl << wordsCompletitionList(scope.second);
|
||||
if (word_complet) acl << wordsCompletitionList(scope.second);
|
||||
QFont bf(font());
|
||||
bf.setBold(true);
|
||||
foreach (const ACPair & ac, acl) {
|
||||
@@ -1274,8 +1274,9 @@ void QCodeEdit::invokeAutoCompletition(bool force) {
|
||||
completer->setVisible(true);
|
||||
//qApp->processEvents();
|
||||
int sz = completer->verticalScrollBar()->width();
|
||||
for (int i = 0; i < completer->header()->count(); ++i)
|
||||
sz += qMax<int>(sz, ((QAbstractItemView*)completer)->sizeHintForColumn(i));
|
||||
sz += ((QAbstractItemView*)completer)->viewport()->width();
|
||||
// for (int i = 0; i < completer->header()->count(); ++i)
|
||||
// sz += ((QAbstractItemView*)completer)->sizeHintForColumn(i);
|
||||
completer->resize(sz, fontHeight() * 16);
|
||||
} else
|
||||
completer->hide();
|
||||
|
||||
Reference in New Issue
Block a user