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)));
}
Exemple #2
0
void MainWindow::preferences()
{
    if (ConfigDialog::isShown()) {
        return;
    }

    ConfigDialog* dlg = new ConfigDialog(this);
    connect(dlg, &ConfigDialog::settingsChanged,
            this, &MainWindow::settingsChanged);
    dlg->show();
}
Exemple #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();
}
Exemple #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();
}