Beispiel #1
0
void Config::generatedefault()
{
    kLogPrintf("generatedafault()\n");
    root       = new Item(""); //корневой
    Item* cfg  = new Item("boinctui_cfg");
    root->addsubitem(cfg);
    addhost("127.0.0.1","31416","");
}
Beispiel #2
0
/** Default constructor */
ConnectDialog::ConnectDialog(QWidget *parent, Qt::WFlags flags)
  : QMainWindow(parent, flags)
{
    /* Invoke Qt Designer generated QObject setup routine */
    ui.setupUi(this);

    connect (ui.pushButton,SIGNAL(clicked()),this,SLOT(addhost()));

    //KConfig config;
    //config.loadWidgetInformation(this);

    // Create the status bar
    statusBar()->showMessage("Please enter a ip adress or a host name");

    setFixedSize(QSize(317, 88));
}