void frmEntUsc::creaToolBar()
{
lblRicerca
->setText
(QString::fromUtf8("Ricerca per Data: "));
lblRicerca->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
ricData
->setMinimumSize
(QSize(100,
20));
ricData
->setMaximumSize
(QSize(100,
20));
ricData->setWrapping(false);
ricData->setFrame(true);
ricData->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
ricData->setAccelerated(true);
ricData->setCalendarPopup(true);
ricData
->setDate
(QDate::currentDate());
ui.editToolBar->insertWidget(ui.action_Ricerca, lblRicerca);
ui.editToolBar->insertWidget(ui.action_Ricerca, ricData);
ui.editToolBar->insertSeparator(ui.action_Stampa);
vLayout->addWidget(lblRicerca);
vLayout->addWidget(ricData);
connect(ui.action_Ricerca, SIGNAL(triggered()),
this, SLOT(appFiltro()));
connect(ricData,
SIGNAL(dateChanged
(QDate)),
this,
SLOT(cambioData
(QDate)));
}
void frmEntUsc::creaToolBar()
{
QLabel * lblRicerca;
lblRicerca = new QLabel();
lblRicerca->setText(QString::fromUtf8("Ricerca per Data: "));
lblRicerca->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
ricData = new QDateEdit();
ricData->setMinimumSize(QSize(100, 20));
ricData->setMaximumSize(QSize(100, 20));
ricData->setWrapping(false);
ricData->setFrame(true);
ricData->setAlignment(Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter);
ricData->setButtonSymbols(QAbstractSpinBox::UpDownArrows);
ricData->setAccelerated(true);
ricData->setCalendarPopup(true);
ricData->setDate(QDate::currentDate());
ui.editToolBar->insertWidget(ui.action_Ricerca, lblRicerca);
ui.editToolBar->insertWidget(ui.action_Ricerca, ricData);
ui.editToolBar->insertSeparator(ui.action_Stampa);
vLayout = new QVBoxLayout();
vLayout->addWidget(lblRicerca);
vLayout->addWidget(ricData);
connect(ui.action_Ricerca, SIGNAL(triggered()),
this, SLOT(appFiltro()));
connect(ricData, SIGNAL(dateChanged(QDate)),
this, SLOT(cambioData(QDate)));
}
To copy to clipboard, switch view to plain text mode
Bookmarks