Changeset View
Changeset View
Standalone View
Standalone View
plugins/quickopen/quickopenplugin.cpp
Show First 20 Lines • Show All 787 Lines • ▼ Show 20 Line(s) | 787 | for(int a = 0; a < items.size(); ++a) | |||
---|---|---|---|---|---|
788 | items[a].m_noHtmlDestription = true; | 788 | items[a].m_noHtmlDestription = true; | ||
789 | } | 789 | } | ||
790 | 790 | | |||
791 | cursorDecl = cursorContextDeclaration(); | 791 | cursorDecl = cursorContextDeclaration(); | ||
792 | 792 | | |||
793 | model->registerProvider( QStringList(), QStringList(), new DeclarationListDataProvider(QuickOpenPlugin::self(), items, true) ); | 793 | model->registerProvider( QStringList(), QStringList(), new DeclarationListDataProvider(QuickOpenPlugin::self(), items, true) ); | ||
794 | 794 | | |||
795 | dialog = new QuickOpenWidgetDialog( i18n("Outline"), model, QStringList(), QStringList(), true ); | 795 | dialog = new QuickOpenWidgetDialog( i18n("Outline"), model, QStringList(), QStringList(), true ); | ||
796 | dialog->widget()->setSortingEnabled(true); | ||||
796 | 797 | | |||
797 | model->setParent(dialog->widget()); | 798 | model->setParent(dialog->widget()); | ||
798 | } | 799 | } | ||
799 | void finish() { | 800 | void finish() { | ||
800 | //Select the declaration that contains the cursor | 801 | //Select the declaration that contains the cursor | ||
801 | if(cursorDecl && dialog) { | 802 | if(cursorDecl && dialog) { | ||
802 | int num = 0; | 803 | int num = 0; | ||
803 | foreach(const DUChainItem& item, items) { | 804 | foreach(const DUChainItem& item, items) { | ||
▲ Show 20 Lines • Show All 304 Lines • Show Last 20 Lines |