本文整理汇总了C++中Singleton::loadWidthList方法的典型用法代码示例。如果您正苦于以下问题:C++ Singleton::loadWidthList方法的具体用法?C++ Singleton::loadWidthList怎么用?C++ Singleton::loadWidthList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Singleton
的用法示例。
在下文中一共展示了Singleton::loadWidthList方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: BaseForm
AnalitikaArtikliLista::AnalitikaArtikliLista(BaseForm *parent) :
BaseForm(parent),
ui(new Ui::AnalitikaArtikliLista)
, enableClose(true)
{
ui->setupUi(this);
hlp = new QHelperC(this);
m_row = 0;
Singleton *s = Singleton::Instance();
QRect rMain = s->getMainRect();
ui->gridLayout->setGeometry(rMain);
setLayout(ui->gridLayout);
BaseInstallEventFilter(ui->gridLayout);
ui->tableView->setSelectionBehavior( QAbstractItemView::SelectRows );
ui->tableView->setSelectionMode( QAbstractItemView::SingleSelection );
setFixedSize(QSize(rMain.width()-10, rMain.height()-40));
model = new QStandardItemModel(0,0);
header = new QHeaderView(Qt::Horizontal, 0);
model_2 = new QStandardItemModel(0,0);
header_2 = new QHeaderView(Qt::Horizontal, 0);
QStringList tempVals = s->Get_Faktura_HeaderState();
colWidth = s->loadWidthList(tempVals, COL);
b = new QBTemplate<AnalitikaArtikliT>();
bd = new QBTemplate<dokumentDetailT>();
bc = new QBTemplate<AnalitikaArtikliDetailT>();
QStringList tempValsDetail = s->Get_FakturaDetail_HeaderState();
colDetailWidth = s->loadWidthList(tempValsDetail, COL_DETAIL);
ui->tableView->setModel(model);
sm =ui->tableView->selectionModel();
connect(sm, SIGNAL(currentRowChanged(QModelIndex,QModelIndex)), this, SLOT(selectionChanged(QModelIndex,QModelIndex)));
connect(header, SIGNAL(sectionResized(int, int, int)), this, SLOT(procSectionResized(int, int, int)));
connect(header_2, SIGNAL(sectionResized(int, int, int)), this, SLOT(procSectionResizedDetail(int, int, int)));
updateFont();
}
示例2: BaseForm
IntIspratniciVnes::IntIspratniciVnes(BaseForm *parent) :
BaseForm(parent),
statusWait(false),
hlp(0),
statusOpenEditor(false),
ui(new Ui::IntIspratniciVnes)
{
ui->setupUi(this);
hlp = new QHelperC(this);
Singleton *s = Singleton::Instance();
BaseInstallEventFilter(ui->gridLayout);
QRect rMain = s->getMainRect();
ui->gridLayout->setGeometry(rMain);
setLayout(ui->gridLayout);
setFixedSize(QSize(rMain.width()-10, rMain.height()-40));
strDisabled = "color: blue; font-size: "+QString::number(s->getGlobalFontSize())+"pt;";
ui->sifra_artikal->setStyleSheet(strDisabled);
ui->sifra_komintent->setStyleSheet(strDisabled);
model = new QStandardItemModel(0,0);
header = new QHeaderView(Qt::Horizontal, 0);
QStringList tempValsDetail = s->Get_FakturaDetail_HeaderState();
colDetailWidth = s->loadWidthList(tempValsDetail, COL_DETAIL);
b = new QBTemplate<IntIspratniciT>();
bd = new QBTemplate<IntIspratniciDetailT>();
ui->tableView->setModel(model);
connect(header, SIGNAL(sectionResized(int, int, int)), this, SLOT(procSectionResized(int, int, int)));
sm =ui->tableView->selectionModel();
connect(sm, SIGNAL(currentRowChanged(QModelIndex,QModelIndex)), this, SLOT(selectionChanged(QModelIndex,QModelIndex)));
comboboxD = new QCBItemDelegate(Q_NULLPTR);
connect(comboboxD, SIGNAL(updatePodatoci()), this , SLOT(updatePodatoci()));
lineeditD = new QLEItemDelegate(Q_NULLPTR);
connect(lineeditD, SIGNAL(updateCellLE(const QModelIndex &, QString &)), this , SLOT(updateStructCellLineEdit(const QModelIndex &, QString &)));
updateFont();
PressKeyTAB(this);
}
示例3: BaseForm
PovratniciKorekcija::PovratniciKorekcija(BaseForm *parent) :
BaseForm(parent),
statusWait(false),
hlp(0),
statusOpenEditor(false),
ui(new Ui::PovratniciKorekcija)
{
ui->setupUi(this);
hlp = new QHelperC(this);
Singleton *s = Singleton::Instance();
BaseInstallEventFilter(ui->gridLayout);
QRect rMain = s->getMainRect();
ui->gridLayout->setGeometry(rMain);
setLayout(ui->gridLayout);
setFixedSize(QSize(rMain.width()-10, rMain.height()-40));
model = new QStandardItemModel(0,0);
header = new QHeaderView(Qt::Horizontal, 0);
QStringList tempValsDetail = s->Get_FakturaDetail_HeaderState();
colDetailWidth = s->loadWidthList(tempValsDetail, COL_DETAIL);
b = new QBTemplate<PovratniciT>();
bd = new QBTemplate<PovratniciDetailT>();
ui->tableView->setModel(model);
connect(header, SIGNAL(sectionResized(int, int, int)), this, SLOT(procSectionResized(int, int, int)));
sm = ui->tableView->selectionModel();
smDetail = ui->tableView->selectionModel();
connect(sm, SIGNAL(currentRowChanged(QModelIndex,QModelIndex)), this, SLOT(selectionChanged(QModelIndex,QModelIndex)));
connect(smDetail, SIGNAL(currentChanged(QModelIndex,QModelIndex)), this, SLOT(selectionChangedDetail(QModelIndex,QModelIndex)));
comboboxD = new QCBItemDelegate(Q_NULLPTR);
connect(comboboxD, SIGNAL(updatePodatoci()), this , SLOT(updatePodatoci()));
lineeditD = new QLEItemDelegate(Q_NULLPTR);
connect(lineeditD, SIGNAL(updateCellLE(const QModelIndex &, QString &)), this , SLOT(updateStructCellLineEdit(const QModelIndex &, QString &)));
updateFont();
}
示例4: BaseForm
ProFakturiKorekcija::ProFakturiKorekcija(BaseForm *parent) :
BaseForm(parent),
statusWait(false),
hlp(0),
ui(new Ui::ProFakturiKorekcija)
{
ui->setupUi(this);
hlp = new QHelperC(this);
Singleton *s = Singleton::Instance();
QRect rMain = s->getMainRect();
ui->gridLayout->setGeometry(rMain);
setLayout(ui->gridLayout);
setFixedSize(QSize(rMain.width()-10, rMain.height()-40));
model = new QStandardItemModel(0,0);
header = new QHeaderView(Qt::Horizontal, 0);
QStringList tempValsDetail = s->Get_FakturaDetail_HeaderState();
colDetailWidth = s->loadWidthList(tempValsDetail, COL_DETAIL);
ui->tableView->setModel(model);
connect(header, SIGNAL(sectionResized(int, int, int)), this, SLOT(procSectionResized(int, int, int)));
sm =ui->tableView->selectionModel();
connect(sm, SIGNAL(currentRowChanged(QModelIndex,QModelIndex)), this, SLOT(selectionChanged(QModelIndex,QModelIndex)));
}