Exemplo n.º 1
0
int main(int argc, char *argv[])
{
    Application app(argc, argv);
    app.setOrganizationName("XTab");
    app.setApplicationName("XTab");
    app.setOrganizationDomain("https://github.com/Andersbakken/xtab");
    app.setWindowIcon(QIcon(":/terminal.png"));
    TabWidget window;
    window.show();
    return app.exec();
}
Exemplo n.º 2
0
void
Gui::minimize()
{
    std::list<TabWidgetI*> panes = getApp()->getTabWidgetsSerialization();
    for (std::list<TabWidgetI*>::iterator it = panes.begin(); it != panes.end(); ++it) {
        TabWidget* pane = dynamic_cast<TabWidget*>(*it);
        if (!pane) {
            continue;
        }
        pane->show();
    }
    if (!_imp->leftToolBarDisplayedOnHoverOnly) {
        _imp->_toolBox->show();
    }
}
Exemplo n.º 3
0
int main(int argc, char *argv[])
{
    QApplication app(argc, argv);

    QWidget *widget1 = new QWidget;
    QVBoxLayout *layout1 = new QVBoxLayout(widget1);
    layout1->addWidget(new QLabel("Inform"));

    QWidget *widget2 = new QWidget;
    QVBoxLayout *layout2 = new QVBoxLayout(widget2);
    layout2->addWidget(new QLabel("Switch"));

    TabWidget tabWidget;
    tabWidget.addTab(widget1, QIcon(":/current_inform"), "");
    tabWidget.addTab(widget2, QIcon(":/switch"), "");
    tabWidget.show();

    return app.exec();
}