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


C++ saveWindowGeometry函数代码示例

本文整理汇总了C++中saveWindowGeometry函数的典型用法代码示例。如果您正苦于以下问题:C++ saveWindowGeometry函数的具体用法?C++ saveWindowGeometry怎么用?C++ saveWindowGeometry使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了saveWindowGeometry函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: saveWindowGeometry

BitcoinGUI::~BitcoinGUI()
{
    saveWindowGeometry();
    if(trayIcon) // Hide tray icon, as deleting will let it linger until quit (on Ubuntu)
        trayIcon->hide();
#ifdef Q_OS_MAC
    delete appMenuBar;
    MacDockIconHandler::instance()->setMainWindow(NULL);
#endif
}
开发者ID:LiveChains,项目名称:asiccoin,代码行数:10,代码来源:bitcoingui.cpp

示例2: saveWindowGeometry

void Widget::closeEvent(QCloseEvent *event)
{
    if (Settings::getInstance().getShowSystemTray() && Settings::getInstance().getCloseToTray() == true)
    {
        event->ignore();
        this->hide();
    }
    else
    {
        saveWindowGeometry();
        saveSplitterGeometry();
        qApp->exit(0);
        QWidget::closeEvent(event);
    }
}
开发者ID:AWeinb,项目名称:qTox,代码行数:15,代码来源:widget.cpp

示例3: MYASSERT

void FMCConsole::setupDefaultConfig()
{
    MYASSERT(m_main_config != 0);

    saveWindowGeometry();

#if VASFMC_GAUGE
    m_main_config->setValue(CFG_VASFMC_DIR, VasPath::getPath());
#else
    m_main_config->setValue(CFG_VASFMC_DIR, QDir::current().absolutePath());
#endif

    m_main_config->setValue(CFG_STYLE, CFG_STYLE_A);
    m_main_config->setValue(CFG_CONSOLE_MAX_LOGLINES, "500");
    m_main_config->setValue(CFG_PERSISTANCE_FILE, "persistence.dat");
    m_main_config->setValue(CFG_ENABLE_CONFIG_ACCESS, 0);
    m_main_config->setValue(CFG_BEST_ANTI_ALIASING, 1);
    m_main_config->setValue(CFG_FONT_NAME, "fmc.fnt");
    m_main_config->setValue(CFG_ACTIVE_FONT_SIZE, 15);
    m_main_config->setValue(CFG_ACTIVE_FONT_INDEX, 4);
    m_main_config->setValue(CFG_FONT_SIZE1, 12);
    m_main_config->setValue(CFG_FONT_SIZE2, 13);
    m_main_config->setValue(CFG_FONT_SIZE3, 14);
    m_main_config->setValue(CFG_FONT_SIZE4, 15);
    m_main_config->setValue(CFG_FONT_SIZE5, 16);
    m_main_config->setValue(CFG_FONT_SIZE6, 18);
    m_main_config->setValue(CFG_FONT_SIZE7, 20);
    m_main_config->setValue(CFG_FONT_SIZE8, 24);
    m_main_config->setValue(CFG_FONT_SIZE9, 32);
    m_main_config->setValue(CFG_ASK_FOR_QUIT, 0);
    m_main_config->setValue(CFG_FLIGHTPLAN_SUBDIR, "fps");
    m_main_config->setValue(CFG_AIRCRAFT_DATA_SUBDIR, "aircraft_data");
    m_main_config->setValue(CFG_CHECKLIST_SUBDIR, "checklists");
    m_main_config->setValue(CFG_GEODATA_FILE, "gshhs/gshhs_l.b");
    m_main_config->setValue(CFG_GEODATA_FILTER_LEVEL, 1);
    m_main_config->setValue(CFG_DECLINATION_DATAFILE, "WMM2005.cof");
    m_main_config->setValue(CFG_FLIGHTSTATUS_SMOOTHING_DELAY_MS, 150);
//Make sure, that only in WIN32-Environments the default FS_ACCESS_TYPE is MSFS
#ifdef Q_OS_WIN32
    m_main_config->setValue(CFG_FS_ACCESS_TYPE, FS_ACCESS_TYPE_MSFS);
#else
    m_main_config->setValue(CFG_FS_ACCESS_TYPE, FS_ACCESS_TYPE_XPLANE);
#endif
}
开发者ID:Rodeo314,项目名称:xVasFMC,代码行数:44,代码来源:fmc_console.cpp

示例4: saveWindowGeometry

FMCConsole::~FMCConsole()
{
    for(int index=0; index < m_time_used_list.count(); ++index) Logger::log(m_time_used_list[index]);

    delete m_navdisplay_left_handler;
    delete m_upper_ecam_handler;
    delete m_pfd_left_handler;
    delete m_cdu_left_handler;
    delete m_cdu_right_handler;
    delete m_fmc_control;
    delete m_fcu_handler;
    delete m_gps_handler;
    delete m_navdisplay_right_handler;
    delete m_pfd_right_handler;
    delete m_fmc_sounds_handler;

#ifdef USE_OPENAL
    AlContext::destroyContext();
#endif

    saveWindowGeometry();
    m_main_config->saveToFile();
    delete m_main_config;
}
开发者ID:Rodeo314,项目名称:xVasFMC,代码行数:24,代码来源:fmc_console.cpp

示例5: saveWindowGeometry

SyntaxEditorWindow::~SyntaxEditorWindow()
{
 	saveWindowGeometry(this, "Look", "SyntaxEditorGeometry");
}
开发者ID:ziemniak,项目名称:kadu,代码行数:4,代码来源:syntax-editor-window.cpp

示例6: saveWindowGeometry

GaduUnregisterAccountWindow::~GaduUnregisterAccountWindow()
{
	saveWindowGeometry(this, "General", "GaduUnregisterAccountGeometry");
}
开发者ID:partition,项目名称:kadu,代码行数:4,代码来源:gadu-unregister-account-window.cpp


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