Skip to content

Commit

Permalink
style: use code font in autocomplete
Browse files Browse the repository at this point in the history
  • Loading branch information
scztt committed Mar 18, 2015
1 parent 8e623f2 commit 1d7d692
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions editors/sc-ide/widgets/code_editor/autocompleter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ class CompletionMenu : public PopUpWidget
mListView = new QListView();
mListView->setModel(mFilterModel);
mListView->setFrameShape(QFrame::NoFrame);
Settings::Manager *settings = Main::settings();
mListView->setFont(settings->codeFont());


QHBoxLayout *layout = new QHBoxLayout(this);
layout->addWidget(mListView);
Expand Down Expand Up @@ -709,7 +712,7 @@ CompletionMenu * AutoCompleter::menuForClassMethodCompletion(CompletionDescripti

foreach(const Method *method, methodList) {
QString methodName = method->name.get();
QString detail(" [ %1 ]");
QString detail(" [%1]");

QStandardItem *item = new QStandardItem();
item->setText( methodName + detail.arg(method->ownerClass->name) );
Expand Down Expand Up @@ -754,7 +757,7 @@ CompletionMenu * AutoCompleter::menuForMethodCompletion(CompletionDescription co
QStandardItem *item = new QStandardItem();

QString methodName = method->name.get();
QString detail(" [ %1 ]");
QString detail(" [%1]");
if (count == 1) {
item->setText( methodName + detail.arg(method->ownerClass->name) );
item->setData( QVariant::fromValue(method), CompletionMenu::MethodRole );
Expand Down

0 comments on commit 1d7d692

Please sign in to comment.