Пример #1
0
void IdealIRC::showEvent(QShowEvent *)
{
    /// Insert stuff that should run every showEvent here:


    // --
    if (! firstShow) return;
    firstShow = false;

    /// Insert stuff that should run when IIRC shows for first time here:
    ui->treeWidget->setSortingEnabled(true);
    ui->treeWidget->sortItems(0, Qt::AscendingOrder);

    CreateSubWindow("Status", WT_STATUS, 0, true);

    if (conf.showOptionsStartup)
        on_actionOptions_triggered();

    scriptParent.loadAllScripts();
    scriptParent.runevent(te_start);
}
Пример #2
0
void IdealIRC::showEvent(QShowEvent *)
{
    /// Insert stuff that should run every showEvent here:


    // --
    if (! firstShow) return;
    firstShow = false;

    /// Insert stuff that should run when IIRC shows for first time here:
    ui->treeWidget->setSortingEnabled(true);
    ui->treeWidget->sortItems(0, Qt::AscendingOrder);

    CreateSubWindow("Status", WT_STATUS, 0, true);

    if (conf.showOptionsStartup)
        on_actionOptions_triggered();

    addToolBarBreak();
    addToolBar(wsw.getToolbar());

    wsw.getToolbar()->setVisible( conf.showButtonbar );
    ui->treeWidget->setVisible( conf.showTreeView );

    ui->actionToolbar->setChecked( ui->toolBar->isVisible() );
    ui->actionWindow_buttons->setChecked( wsw.getToolbar()->isVisible() );
    ui->actionWindow_tree->setChecked( ui->treeWidget->isVisible() );

    ui->actionMenubar->setChecked( conf.showMenubar );
    ui->menuBar->setVisible( ui->actionMenubar->isChecked() );

    scriptParent.getToolbarPtr(&customToolbar);

    scriptParent.loadAllScripts();
    scriptParent.runevent(te_start);
}