Exemplo n.º 1
0
void PostDocklet::onFloatingChanged(bool floating)
{
    // HACK: After undocking when main window maximized, the dock widget can not be
    // resized anymore. Apparently it has to do something with the fact that the dock
    // widget spans from edge to edge of the screen.
    // The issue is avoided by slightly shrinking the dock widget.
    if (floating)
        dockWidget()->resize(dockWidget()->size() - QSize(1,1));
}
Exemplo n.º 2
0
void RecorderDialog::initParameterWidgets()
{
    BaseHostDialog::initParameterWidgets();

    mRecorderControlWidget = new RecorderControlWidget(this, true, UI_NAME_RECORDER);
    dockWidget()->layout()->addWidget(mRecorderControlWidget);
    mSaveableWidgets.push_back(mRecorderControlWidget);


    connect(mRecorderControlWidget->ui()->choosePathButton, SIGNAL(clicked()), this, SLOT(openPathSelectDialog()));
    connect(mRecorderControlWidget->ui()->recStartButton, SIGNAL(clicked()), this, SLOT(toggleRecording()));

}