Changeset View
Changeset View
Standalone View
Standalone View
tools/onlinequoteseditor/mainwindow.cpp
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Line(s) | 72 | { | |||
---|---|---|---|---|---|
76 | manager.addProfile(new AlkOnlineQuotesProfile("no-config-file", AlkOnlineQuotesProfile::Type::None)); | 76 | manager.addProfile(new AlkOnlineQuotesProfile("no-config-file", AlkOnlineQuotesProfile::Type::None)); | ||
77 | manager.addProfile(new AlkOnlineQuotesProfile("alkimia4", AlkOnlineQuotesProfile::Type::Alkimia4, "alkimia-quotes.knsrc")); | 77 | manager.addProfile(new AlkOnlineQuotesProfile("alkimia4", AlkOnlineQuotesProfile::Type::Alkimia4, "alkimia-quotes.knsrc")); | ||
78 | manager.addProfile(new AlkOnlineQuotesProfile("alkimia5", AlkOnlineQuotesProfile::Type::Alkimia5, "alkimia-quotes.knsrc")); | 78 | manager.addProfile(new AlkOnlineQuotesProfile("alkimia5", AlkOnlineQuotesProfile::Type::Alkimia5, "alkimia-quotes.knsrc")); | ||
79 | manager.addProfile(new AlkOnlineQuotesProfile("skrooge4", AlkOnlineQuotesProfile::Type::Skrooge4, "skrooge-quotes.knsrc")); | 79 | manager.addProfile(new AlkOnlineQuotesProfile("skrooge4", AlkOnlineQuotesProfile::Type::Skrooge4, "skrooge-quotes.knsrc")); | ||
80 | manager.addProfile(new AlkOnlineQuotesProfile("skrooge5", AlkOnlineQuotesProfile::Type::Skrooge5, "skrooge-quotes.knsrc")); | 80 | manager.addProfile(new AlkOnlineQuotesProfile("skrooge5", AlkOnlineQuotesProfile::Type::Skrooge5, "skrooge-quotes.knsrc")); | ||
81 | manager.addProfile(new AlkOnlineQuotesProfile("kmymoney4", AlkOnlineQuotesProfile::Type::KMyMoney4, "kmymoney-quotes.knsrc")); | 81 | manager.addProfile(new AlkOnlineQuotesProfile("kmymoney4", AlkOnlineQuotesProfile::Type::KMyMoney4, "kmymoney-quotes.knsrc")); | ||
82 | manager.addProfile(new AlkOnlineQuotesProfile("kmymoney5", AlkOnlineQuotesProfile::Type::KMyMoney5, "kmymoney-quotes.knsrc")); | 82 | manager.addProfile(new AlkOnlineQuotesProfile("kmymoney5", AlkOnlineQuotesProfile::Type::KMyMoney5, "kmymoney-quotes.knsrc")); | ||
83 | d->ui.setupUi(this); | 83 | d->ui.setupUi(this); | ||
84 | 84 | #if QT_VERSION >= QT_VERSION_CHECK(5,0,0) | |||
85 | d->ui.mainToolBar->deleteLater(); | ||||
86 | #endif | ||||
85 | d->quotesWidget = new AlkOnlineQuotesWidget(true, true); | 87 | d->quotesWidget = new AlkOnlineQuotesWidget(true, true); | ||
86 | 88 | | |||
87 | QDockWidget *profilesWidget = new QDockWidget(tr("Profiles"), this); | 89 | QDockWidget *profilesWidget = new QDockWidget(tr("Profiles"), this); | ||
88 | profilesWidget->setWidget(d->quotesWidget->profilesWidget()); | 90 | profilesWidget->setWidget(d->quotesWidget->profilesWidget()); | ||
89 | addDockWidget(Qt::LeftDockWidgetArea, profilesWidget); | 91 | addDockWidget(Qt::LeftDockWidgetArea, profilesWidget); | ||
90 | 92 | | |||
91 | QDockWidget *profileDetailsWidget = new QDockWidget(tr("Profile details"), this); | 93 | QDockWidget *profileDetailsWidget = new QDockWidget(tr("Profile details"), this); | ||
92 | profileDetailsWidget->setWidget(d->quotesWidget->profileDetailsWidget()); | 94 | profileDetailsWidget->setWidget(d->quotesWidget->profileDetailsWidget()); | ||
▲ Show 20 Lines • Show All 58 Lines • Show Last 20 Lines |