Exemplo n.º 1
0
void MainWindow::itemDoubleClicked(QModelIndex index)
{
    //QMessageBox::information(this, "Hi", "Clicked " + index.data().toString());
    ConfigDialog * dialog = new ConfigDialog;
    dialog->show();

    connect(dialog, SIGNAL(sendItemDeleted()), this, SLOT(receiveItemDeleted()));
    connect(dialog, SIGNAL(sendItemUpdated(QBrush)), this, SLOT(receiveItemUpdated(QBrush)));
}
Exemplo n.º 2
0
void MainWindow::preferences()
{
    if (ConfigDialog::isShown()) {
        return;
    }

    ConfigDialog* dlg = new ConfigDialog(this);
    connect(dlg, &ConfigDialog::settingsChanged,
            this, &MainWindow::settingsChanged);
    dlg->show();
}
Exemplo n.º 3
0
void Klipper::slotConfigure()
{
    if (KConfigDialog::showDialog("preferences")) {
        return;
    }

    ConfigDialog *dlg = new ConfigDialog( 0, KlipperSettings::self(), this, m_collection, isApplet() );
    connect(dlg, SIGNAL(settingsChanged(QString)), SLOT(loadSettings()));

    dlg->show();
}
Exemplo n.º 4
0
void Atlas::action_Configure()
{
    ConfigDialog * dialog =new ConfigDialog(this);
    dialog->show();
}
void NepomukEMailFeeder::configure(WId windowId)
{
  ConfigDialog* dlg = new ConfigDialog( windowId );
  dlg->setAttribute( Qt::WA_DeleteOnClose );
  dlg->show();
}