本文整理汇总了C++中setDisplayName函数的典型用法代码示例。如果您正苦于以下问题:C++ setDisplayName函数的具体用法?C++ setDisplayName怎么用?C++ setDisplayName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setDisplayName函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: m_widget
BlackBerryKeysPage::BlackBerryKeysPage(QObject *parent) :
Core::IOptionsPage(parent),
m_widget(0)
{
setId(Core::Id(Constants::QNX_BB_SIGNING_ID));
setDisplayName(tr("Keys"));
setCategory(Constants::QNX_BB_CATEGORY);
setDisplayCategory(QCoreApplication::translate("BlackBerry",
Constants::QNX_BB_CATEGORY_TR));
}
示例2: HelloMode
HelloMode()
{
setWidget(new QPushButton(tr("Hello World PushButton!")));
setContext(Core::Context("HelloWorld.MainView"));
setDisplayName(tr("Hello world!"));
setIcon(QIcon());
setPriority(0);
setId("HelloWorld.HelloWorldMode");
setContextHelpId(QString());
}
示例3: setId
DeviceSettingsPage::DeviceSettingsPage(QObject *parent)
: Core::IOptionsPage(parent)
{
setId(Constants::DEVICE_SETTINGS_PAGE_ID);
setDisplayName(tr("Devices"));
setCategory(Constants::DEVICE_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("ProjectExplorer",
ProjectExplorer::Constants::DEVICE_SETTINGS_TR_CATEGORY));
setCategoryIcon(Utils::Icon(":/projectexplorer/images/MaemoDevice.png"));
}
示例4: m_settings
SettingsPage::SettingsPage(const QSharedPointer<Settings> &settings) :
m_settings(settings), m_widget(0)
{
setId("A.General");
setDisplayName(tr("General"));
setCategory(Constants::CPASTER_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("CodePaster",
Constants::CPASTER_SETTINGS_TR_CATEGORY));
setCategoryIcon(QLatin1String(Constants::SETTINGS_CATEGORY_CPASTER_ICON));
}
示例5: IOptionsPage
ArtisticStyleOptionsPage::ArtisticStyleOptionsPage(ArtisticStyleSettings *settings, QObject *parent) :
IOptionsPage(parent),
m_settings(settings)
{
setId(Constants::ArtisticStyle::OPTION_ID);
setDisplayName(tr("Artistic Style"));
setCategory(Constants::OPTION_CATEGORY);
setDisplayCategory(QCoreApplication::translate("Beautifier", Constants::OPTION_TR_CATEGORY));
setCategoryIcon(Utils::Icon(Constants::OPTION_CATEGORY_ICON));
}
示例6: IOptionsPage
UncrustifyOptionsPage::UncrustifyOptionsPage(UncrustifySettings *settings, QObject *parent) :
IOptionsPage(parent),
m_settings(settings)
{
setId(Constants::Uncrustify::OPTION_ID);
setDisplayName(tr("Uncrustify"));
setCategory(Constants::OPTION_CATEGORY);
setDisplayCategory(QCoreApplication::translate("Beautifier", Constants::OPTION_TR_CATEGORY));
setCategoryIcon(Constants::OPTION_CATEGORY_ICON);
}
示例7: m_model
ProfileOptionsPage::ProfileOptionsPage() :
m_model(0), m_selectionModel(0), m_currentWidget(0), m_toShow(0)
{
setId(Constants::PROFILE_SETTINGS_PAGE_ID);
setDisplayName(tr("Targets"));
setCategory(QLatin1String(Constants::PROJECTEXPLORER_SETTINGS_CATEGORY));
setDisplayCategory(QCoreApplication::translate("ProjectExplorer",
Constants::PROJECTEXPLORER_SETTINGS_TR_CATEGORY));
setCategoryIcon(QLatin1String(Constants::PROJECTEXPLORER_SETTINGS_CATEGORY_ICON));
}
示例8: m_widget
CdbPathsPage::CdbPathsPage()
: m_widget(0)
{
setId("F.Cdb");
setDisplayName(tr("CDB Paths"));
setCategory(Debugger::Constants::DEBUGGER_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("Debugger",
Constants::DEBUGGER_SETTINGS_TR_CATEGORY));
setCategoryIcon(QLatin1String(Constants::DEBUGGER_COMMON_SETTINGS_CATEGORY_ICON));
}
示例9: setId
IosSettingsPage::IosSettingsPage(QObject *parent)
: Core::IOptionsPage(parent)
{
setId(Constants::IOS_SETTINGS_ID);
setDisplayName(tr("iOS Configurations"));
setCategory(Constants::IOS_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("iOS",
Constants::IOS_SETTINGS_TR_CATEGORY));
setCategoryIcon(QLatin1String(Constants::IOS_SETTINGS_CATEGORY_ICON));
}
示例10: m_settings
SettingsPage::SettingsPage(QSharedPointer<Settings> &settings):
m_settings(settings)
{
setId(Constants::PAGE_ID);
setDisplayName(QString::fromLatin1("Encapsulation"));
setCategory(CppTools::Constants::CPP_SETTINGS_CATEGORY);
setDisplayCategory(QCoreApplication::translate("CppTools", CppTools::Constants::CPP_SETTINGS_TR_CATEGORY));
setCategoryIcon(QString::fromLatin1(CppTools::Constants::SETTINGS_CATEGORY_CPP_ICON));
}
示例11: ClangStaticAnalyzerOptionsPage
explicit ClangStaticAnalyzerOptionsPage()
{
setId("Analyzer.ClangStaticAnalyzer.Settings"); // TODO: Get it from "clangstaticanalyzersettings.h"
setDisplayName(QCoreApplication::translate(
"ClangStaticAnalyzer::Internal::ClangStaticAnalyzerOptionsPage",
"Clang Static Analyzer"));
setCategory("T.Analyzer");
setDisplayCategory(QCoreApplication::translate("Analyzer", "Analyzer"));
setCategoryIcon(QLatin1String(":/images/analyzer_category.png"));
}
示例12: m_nimCodeStylePreferences
NimCodeStyleSettingsPage::NimCodeStyleSettingsPage(QWidget *parent)
: Core::IOptionsPage(parent)
, m_nimCodeStylePreferences(nullptr)
, m_widget(nullptr)
{
setId(Nim::Constants::C_NIMCODESTYLESETTINGSPAGE_ID);
setDisplayName(tr(Nim::Constants::C_NIMCODESTYLESETTINGSPAGE_DISPLAY));
setCategory(Nim::Constants::C_NIMCODESTYLESETTINGSPAGE_CATEGORY);
setDisplayCategory(tr(Nim::Constants::C_NIMCODESTYLESETTINGSPAGE_CATEGORY_DISPLAY));
setCategoryIcon(QLatin1String(Nim::Constants::C_NIM_ICON_PATH));
}
示例13: setId
ProjectFilesFactory::ProjectFilesFactory()
{
setId(Constants::FILES_EDITOR_ID);
setDisplayName(QCoreApplication::translate("OpenWith::Editors", ".files Editor"));
addMimeType("application/vnd.qtcreator.generic.files");
addMimeType("application/vnd.qtcreator.generic.includes");
addMimeType("application/vnd.qtcreator.generic.config");
setDocumentCreator([]() { return new TextDocument(Constants::FILES_EDITOR_ID); });
setEditorActionHandlers(TextEditorActionHandler::None);
}
示例14: IDevice
DesktopDevice::DesktopDevice() : IDevice(Core::Id(DESKTOP_DEVICE_TYPE),
IDevice::AutoDetected,
IDevice::Hardware,
Core::Id(DESKTOP_DEVICE_ID))
{
setDisplayName(QCoreApplication::translate("ProjectExplorer::DesktopDevice", "Local PC"));
setDeviceState(IDevice::DeviceStateUnknown);
const QString portRange =
QString::fromLatin1("%1-%2").arg(DESKTOP_PORT_START).arg(DESKTOP_PORT_END);
setFreePorts(Utils::PortList::fromString(portRange));
}
示例15: setProjectSettings
QmlProfilerRunConfigurationAspect::QmlProfilerRunConfigurationAspect(
ProjectExplorer::RunConfiguration *parent) :
ProjectExplorer::IRunConfigurationAspect(parent)
{
setProjectSettings(new QmlProfilerSettings());
setGlobalSettings(QmlProfilerPlugin::globalSettings());
setId(Constants::SETTINGS);
setDisplayName(QCoreApplication::translate("QmlProfilerRunConfiguration", "QML Profiler Settings"));
setUsingGlobalSettings(true);
resetProjectToGlobalSettings();
}