当前位置: 首页>>代码示例>>C++>>正文


C++ setDisplayName函数代码示例

本文整理汇总了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));
}
开发者ID:ProDataLab,项目名称:qt-creator,代码行数:10,代码来源:blackberrykeyspage.cpp

示例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());
 }
开发者ID:ProDataLab,项目名称:qt-creator,代码行数:10,代码来源:helloworldplugin.cpp

示例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"));
}
开发者ID:qtproject,项目名称:qt-creator,代码行数:10,代码来源:devicesettingspage.cpp

示例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));
}
开发者ID:AltarBeastiful,项目名称:qt-creator,代码行数:10,代码来源:settingspage.cpp

示例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));
}
开发者ID:qtproject,项目名称:qt-creator,代码行数:10,代码来源:artisticstyleoptionspage.cpp

示例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);
}
开发者ID:C-sjia,项目名称:qt-creator,代码行数:10,代码来源:uncrustifyoptionspage.cpp

示例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));
}
开发者ID:KDE,项目名称:android-qt-creator,代码行数:10,代码来源:profileoptionspage.cpp

示例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));
}
开发者ID:FlavioFalcao,项目名称:qt-creator,代码行数:10,代码来源:cdboptionspage.cpp

示例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));
}
开发者ID:C-sjia,项目名称:qt-creator,代码行数:10,代码来源:iossettingspage.cpp

示例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));

}
开发者ID:dibben,项目名称:Encapsulation,代码行数:10,代码来源:encapsulationsettingspage.cpp

示例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"));
 }
开发者ID:daodaoliang,项目名称:qt-creator,代码行数:10,代码来源:clangstaticanalyzerplugin.cpp

示例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));
}
开发者ID:C-sjia,项目名称:qt-creator,代码行数:11,代码来源:nimcodestylesettingspage.cpp

示例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);
}
开发者ID:C-sjia,项目名称:qt-creator,代码行数:11,代码来源:genericprojectfileseditor.cpp

示例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));
}
开发者ID:choenig,项目名称:qt-creator,代码行数:11,代码来源:desktopdevice.cpp

示例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();
}
开发者ID:cpp11nullptr,项目名称:qt-creator,代码行数:11,代码来源:qmlprofilerrunconfigurationaspect.cpp


注:本文中的setDisplayName函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。