forked from qt-creator/qt-creator
Fixes: Introduce a cpp settingspage containing file naming conventions (lower case and suffixes). Reorder VCS settings pages.
Task: 241959, 248085 RevBy: Optics/Naming checked by con Details: Give IOptionPage an id() to differentiate from trName(). Make showOptionsDialog return a bool (applied) and give it an optional parent. Change Cpp and form class wizards, give them a Configure... button to change those settings.
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
**************************************************************************/
|
||||
|
||||
#include "settingspage.h"
|
||||
#include "quickopenconstants.h"
|
||||
|
||||
#include "quickopenplugin.h"
|
||||
#include "iquickopenfilter.h"
|
||||
@@ -36,6 +37,8 @@
|
||||
#include <qtconcurrent/QtConcurrentTools>
|
||||
#include <utils/qtcassert.h>
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
|
||||
Q_DECLARE_METATYPE(QuickOpen::IQuickOpenFilter*)
|
||||
|
||||
using namespace QuickOpen;
|
||||
@@ -46,6 +49,26 @@ SettingsPage::SettingsPage(QuickOpenPlugin *plugin)
|
||||
{
|
||||
}
|
||||
|
||||
QString SettingsPage::id() const
|
||||
{
|
||||
return QLatin1String(Constants::FILTER_OPTIONS_PAGE);
|
||||
}
|
||||
|
||||
QString SettingsPage::trName() const
|
||||
{
|
||||
return QCoreApplication::translate("Locator", QuickOpen::Constants::FILTER_OPTIONS_PAGE);
|
||||
}
|
||||
|
||||
QString SettingsPage::category() const
|
||||
{
|
||||
return Constants::QUICKOPEN_CATEGORY;
|
||||
}
|
||||
|
||||
QString SettingsPage::trCategory() const
|
||||
{
|
||||
return QCoreApplication::translate("Locator", QuickOpen::Constants::QUICKOPEN_CATEGORY);
|
||||
}
|
||||
|
||||
QWidget *SettingsPage::createPage(QWidget *parent)
|
||||
{
|
||||
if (!m_page) {
|
||||
|
||||
Reference in New Issue
Block a user