本文整理汇总了C++中setOrganizationName函数的典型用法代码示例。如果您正苦于以下问题:C++ setOrganizationName函数的具体用法?C++ setOrganizationName怎么用?C++ setOrganizationName使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了setOrganizationName函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QApplication
QkUiApplication::QkUiApplication(int& pArgc, char** pArgv, const QString& pCompanyName, const QString& pAppName)
: QApplication(pArgc, pArgv)
{
setApplicationName(pAppName);
setOrganizationName(pCompanyName);
initMyResource();
}
示例2: QtSingleApplication
UBApplication::UBApplication(const QString &id, int &argc, char **argv) : QtSingleApplication(id, argc, argv)
, mPreferencesController(NULL)
, mApplicationTranslator(NULL)
, mQtGuiTranslator(NULL)
{
staticMemoryCleaner = new QObject(0); // deleted in UBApplication destructor
setOrganizationName("Sankore");
setOrganizationDomain("sankore.org");
setApplicationName("Open-Sankore");
setApplicationVersion(UBVERSION);
#if defined(Q_WS_MAC) && !defined(QT_NO_DEBUG)
CFStringRef shortVersion = (CFStringRef)CFBundleGetValueForInfoDictionaryKey(CFBundleGetMainBundle(), CFSTR("CFBundleShortVersionString"));
const char *version = CFStringGetCStringPtr(shortVersion, kCFStringEncodingMacRoman);
Q_ASSERT(version);
setApplicationVersion(version);
#endif
QStringList args = arguments();
mIsVerbose = args.contains("-v")
|| args.contains("-verbose")
|| args.contains("verbose")
|| args.contains("-log")
|| args.contains("log");
setupTranslators(args);
UBResources::resources();
if (!undoStack)
undoStack = new QUndoStack(staticMemoryCleaner);
UBPlatformUtils::init();
UBSettings *settings = UBSettings::settings();
connect(settings->appToolBarPositionedAtTop, SIGNAL(changed(QVariant)), this, SLOT(toolBarPositionChanged(QVariant)));
connect(settings->appToolBarDisplayText, SIGNAL(changed(QVariant)), this, SLOT(toolBarDisplayTextChanged(QVariant)));
updateProtoActionsState();
#ifndef Q_WS_MAC
setWindowIcon(QIcon(":/images/uniboard.png"));
#endif
setStyle(new UBStyle()); // Style is owned and deleted by the application
QString css = UBFileSystemUtils::readTextFile(UBPlatformUtils::applicationResourcesDirectory() + "/etc/Uniboard.css");
if (css.length() > 0)
setStyleSheet(css);
QApplication::setStartDragDistance(8); // default is 4, and is a bit small for tablets
installEventFilter(this);
}
示例3: QApplication
IDEApplication::IDEApplication(int& argc, char **argv)
: QApplication(argc, argv),
mSettings(NULL)
{
setOrganizationName(PROJECT_ORGANIZATION);
setApplicationName(PROJECT_NAME);
setApplicationVersion(PROJECT_VERSION);
setWindowIcon(QIcon(":/images/arduide.png"));
// translation support
initializeTranslator();
// fix the data path
mDataPath = QDir(DATA_PATH).absolutePath();
registerMetaTypes();
// initialize Grantlee
initializeTemplates();
// start the GUI
initializeGui();
// check the settings are correct, or start the wizard
initializeSettings();
// further gui initialization
mMainWindow->initialize();
// initialize the plugins
initializePlugins();
}
示例4: QApplication
PhoebetriaApp::PhoebetriaApp(int &argc, char **argv)
: QApplication(argc, argv),
m_currentStyle_filename()
{
setOrganizationName("Phoebetria");
setApplicationName("Phoebetria");
QSettings::setDefaultFormat(QSettings::IniFormat);
DatabaseManager db;
db.initAllDatabases();
if (!setTheme(m_prefs.stylesheet()))
{
QMessageBox::critical(
NULL,
tr("Could not set style."),
tr("Could not set the application style."
" It may not exist. Please check preferences.\n\n"
"Style filename: %1\n\n"
"Setting to the standard profile instead."
).arg(m_prefs.stylesheet())
);
setTheme(Themes::getBuiltInStyleSheetName());
}
m_globalTimer.start(200);
m_dispatcher.start(200);
m_fanControllerIO.connect(); // Connect to the IO device
m_fanControllerIO.connectSignals();
m_fanControllerIO.fanControllerData().connectSignals();
}
示例5: QApplication
CalamaresApplication::CalamaresApplication( int& argc, char *argv[] )
: QApplication( argc, argv )
, m_mainwindow( 0 )
{
setOrganizationName( QLatin1String( CALAMARES_ORGANIZATION_NAME ) );
setOrganizationDomain( QLatin1String( CALAMARES_ORGANIZATION_DOMAIN ) );
setApplicationName( QLatin1String( CALAMARES_APPLICATION_NAME ) );
setApplicationVersion( QLatin1String( CALAMARES_VERSION ) );
QString startupLocale = QLocale::system().uiLanguages().first();
CalamaresUtils::installTranslator( startupLocale, this );
QFont f = font();
cDebug() << "Default font ====="
<< "\nPixel size: " << f.pixelSize()
<< "\nPoint size: " << f.pointSize()
<< "\nPoint sizeF: " << f.pointSizeF()
<< "\nFont family: " << f.family()
<< "\nMetric height:" << QFontMetrics( f ).height();
// The following line blocks for 15s on Qt 5.1.0
cDebug() << "Font height:" << QFontMetrics( f ).height();
CalamaresUtils::setDefaultFontSize( f.pointSize() );
cDebug() << "Available languages:" << QString( CALAMARES_TRANSLATION_LANGUAGES ).split( ';' );
}
示例6: QCoreApplication
tcPlayApp::tcPlayApp ( int & argc, char ** argv)
: QCoreApplication (argc, argv)
{
setApplicationName("Play App");
setOrganizationName("Acme");
setObjectName ("tcPlayApp");
}
示例7: QApplication
Application::Application(int& argc, char** argv)
: QApplication(argc, argv),
m_window(0)
{
setApplicationName("FocusWriter");
setApplicationVersion("1.3.3");
setOrganizationDomain("gottcode.org");
setOrganizationName("GottCode");
{
QIcon fallback(":/hicolor/256x256/apps/focuswriter.png");
fallback.addFile(":/hicolor/128x128/apps/focuswriter.png");
fallback.addFile(":/hicolor/64x64/apps/focuswriter.png");
fallback.addFile(":/hicolor/48x48/apps/focuswriter.png");
fallback.addFile(":/hicolor/32x32/apps/focuswriter.png");
fallback.addFile(":/hicolor/24x24/apps/focuswriter.png");
fallback.addFile(":/hicolor/22x22/apps/focuswriter.png");
fallback.addFile(":/hicolor/16x16/apps/focuswriter.png");
setWindowIcon(QIcon::fromTheme("focuswriter", fallback));
}
#ifndef Q_WS_MAC
setAttribute(Qt::AA_DontUseNativeMenuBar);
setAttribute(Qt::AA_DontShowIconsInMenus, !QSettings().value("Window/MenuIcons", false).toBool());
#else
setAttribute(Qt::AA_DontShowIconsInMenus, true);
new RTF::Converter;
#endif
qputenv("UNICODEMAP_JP", "cp932");
m_files = arguments().mid(1);
processEvents();
}
示例8: QApplication
TApplication::TApplication(int & argc, char** argv)
: QApplication(argc, argv)
{
setOrganizationName("Enterprise");
setApplicationName("QBalance");
setApplicationVersion("0.0.1");
setWindowIcon(QIcon(":qbalance.ico"));
db = new DBFactory();
gui = new GUIFactory(db);
dictionaryList = 0;
topersList = 0;
driverFR = 0;
barCodeReader = new BarCodeReader(this, config.barCodeReaderPort);
driverFRisValid = false;
driverFRlocked = false;
fsWebCamIsValid = true; // Поначалу будем считать, что утилита fsWebCam установлена
reportTemplateType = OOXMLreportTemplate;
cardReaderCode = ""; // Прочитанный код на магнитной карте
if (!Exemplar)
{
Exemplar = this;
}
initConfig();
connect(&timer, SIGNAL(timeout()), this, SLOT(setTimeIsOut()));
timeIsOut = false;
}
示例9: QtSingleApplication
Application::Application(int& argc, char** argv) :
QtSingleApplication("org.gottcode.FocusWriter", argc, argv),
m_window(0)
{
setApplicationName("FocusWriter");
setApplicationVersion(VERSIONSTR);
setApplicationDisplayName(Window::tr("FocusWriter"));
setOrganizationDomain("gottcode.org");
setOrganizationName("GottCode");
#if !defined(Q_OS_WIN) && !defined(Q_OS_MAC)
setWindowIcon(QIcon::fromTheme("focuswriter", QIcon(":/focuswriter.png")));
#endif
setAttribute(Qt::AA_UseHighDpiPixmaps, true);
#ifndef Q_OS_MAC
setAttribute(Qt::AA_DontUseNativeMenuBar);
#else
setAttribute(Qt::AA_DontShowIconsInMenus, true);
#endif
#ifdef RTFCLIPBOARD
new RTF::Clipboard;
#endif
qputenv("UNICODEMAP_JP", "cp932");
m_files = arguments().mid(1);
processEvents();
}
示例10: setOrganizationName
bool
Mp3tunesHarmonyDaemon::allAboardTheDBus()
{
setOrganizationName( "Amarok" );
setOrganizationDomain( "amarok.kde.org" );
setApplicationName( "Mp3tunes Harmony Daemon" );
QDBusConnectionInterface *bus = 0;
bus = QDBusConnection::sessionBus().interface();
if( !bus ) {
qFatal("No dbus!!");
::exit(126);
return false;
}
QStringList parts = this->organizationDomain().split(QLatin1Char('.'), QString::SkipEmptyParts);
QString reversedDomain;
if (parts.isEmpty())
reversedDomain = QLatin1String("local.");
else
foreach (const QString& s, parts)
{
reversedDomain.prepend(QLatin1Char('.'));
reversedDomain.prepend(s);
}
示例11: setApplicationName
:KUniqueApplication()
#endif
{
setApplicationName("karakaxa");
setApplicationVersion(VERSION);
setOrganizationName("karakaxa");
}
示例12: QApplication
Application::Application(int& argc, char* argv[]) : QApplication(argc, argv)
{
setApplicationName("Communi");
setOrganizationName("Communi");
setApplicationVersion(Irc::version());
QIcon icon;
icon.addFile(":/resources/icons/16x16/communi.png");
icon.addFile(":/resources/icons/24x24/communi.png");
icon.addFile(":/resources/icons/32x32/communi.png");
icon.addFile(":/resources/icons/48x48/communi.png");
icon.addFile(":/resources/icons/64x64/communi.png");
icon.addFile(":/resources/icons/128x128/communi.png");
setWindowIcon(icon);
qRegisterMetaTypeStreamOperators<Settings>("Settings");
qRegisterMetaTypeStreamOperators<ConnectionInfo>("ConnectionInfo");
qRegisterMetaTypeStreamOperators<ConnectionInfos>("ConnectionInfos");
QSettings settings;
if (arguments().contains("-reset"))
settings.clear();
ApplicationData::settings = settings.value("settings").value<Settings>();
QFile file(":resources/stylesheet.css");
if (file.open(QFile::ReadOnly | QIODevice::Text))
setStyleSheet(QString::fromUtf8(file.readAll()));
}
示例13: QApplication
AgrosApplication::AgrosApplication(int& argc, char ** argv) : QApplication(argc, argv), m_scriptEngineRemote(NULL)
{
setWindowIcon(icon("agros2d"));
setApplicationVersion(versionString());
setOrganizationName("hpfem.org");
setOrganizationDomain("hpfem.org");
setApplicationName("Agros2D-3");
#ifdef Q_WS_MAC
// don't show icons in menu
setAttribute(Qt::AA_DontShowIconsInMenus, true);
#endif
// std::string codec
#if QT_VERSION < 0x050000
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
QTextCodec::setCodecForTr(QTextCodec::codecForName("UTF-8"));
#endif
QTextCodec::setCodecForLocale(QTextCodec::codecForName("UTF-8"));
// force number format
QLocale::setDefault(QLocale(QLocale::English, QLocale::UnitedStates));
// init singleton
Agros2D::createSingleton();
}
示例14: setWindowIcon
void NavApp::initApplication()
{
setWindowIcon(QIcon(":/littlenavmap/resources/icons/littlenavmap.svg"));
setApplicationName("Little Navmap");
setOrganizationName("ABarthel");
setOrganizationDomain("littlenavmap.org");
setApplicationVersion("2.3.0.develop"); // VERSION_NUMBER - Little Navmap
}
示例15: QApplication
Application::Application(int &argc, char *argv[]): QApplication(argc, argv)
{
setApplicationName("Near");
setOrganizationName("Manti");
w = new MainWindow();
w->show();
}