All pastes #583364 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-22 10:09 UTC
rendered paste body
#include "settings.h"
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QPushButton>
#include "qorganizer.h"

settings::settings(qOrganizer* parent)
{
  //Interface 
  readConfigFile();
  pathLabel=new QLabel(tr("Config folder's path:"));
  pathEdit = new QLineEdit(parent->C_PATH);
  pathButton = new QPushButton(tr("Change"));
  
  QHBoxLayout *pathLayout = new QHBoxLayout;
  pathLayout -> addWidget(pathLabel);
  pathLayout -> addWidget(pathEdit);
  

  QVBoxLayout *main = new QVBoxLayout;
  main -> addLayout(pathLayout);

  setLayout(main);  
}