Example #1
0
TaskEditor::TaskEditor( QWidget* parent )
	: QDialog( parent )
	, m_ui( new Ui::TaskEditor() )
{
	m_ui->setupUi( this );
	connect( m_ui->pushButtonParent, SIGNAL( clicked() ),
			 SLOT( slotSelectParent() ) );
	connect( m_ui->dateEditFrom, SIGNAL( dateChanged( QDate ) ),
			 SLOT( slotDateChanged( QDate ) ) );
	connect( m_ui->dateEditTo, SIGNAL( dateChanged( QDate ) ),
			 SLOT( slotDateChanged( QDate ) ) );
	connect( m_ui->checkBoxFrom, SIGNAL( clicked( bool ) ),
			 SLOT( slotCheckBoxChecked( bool ) ) );
	connect( m_ui->checkBoxUntil, SIGNAL( clicked( bool ) ),
			 SLOT( slotCheckBoxChecked( bool ) ) );
}
Example #2
0
KDatePickerPopup::KDatePickerPopup( int items, const QDate &date, QWidget *parent,
                                    const char *name )
  : QPopupMenu( parent, name )
{
  mItems = items;

  mDatePicker = new KDatePicker( this );
  mDatePicker->setCloseButton( false );

  connect( mDatePicker, SIGNAL( dateEntered( QDate ) ),
           SLOT( slotDateChanged( QDate ) ) );
  connect( mDatePicker, SIGNAL( dateSelected( QDate ) ),
           SLOT( slotDateChanged( QDate ) ) );

  mDatePicker->setDate( date );

  buildMenu();
}
Example #3
0
TaskEditor::TaskEditor( QWidget* parent )
    : QDialog( parent )
    , m_ui( new Ui::TaskEditor )
{
    m_ui->setupUi( this );
    m_ui->dateEditFrom->calendarWidget()->setFirstDayOfWeek( Qt::Monday );
    m_ui->dateEditFrom->calendarWidget()->setVerticalHeaderFormat( QCalendarWidget::ISOWeekNumbers );
    m_ui->dateEditTo->calendarWidget()->setFirstDayOfWeek( Qt::Monday );
    m_ui->dateEditTo->calendarWidget()->setVerticalHeaderFormat( QCalendarWidget::ISOWeekNumbers );
    connect( m_ui->pushButtonParent, SIGNAL(clicked()),
             SLOT(slotSelectParent()) );
    connect( m_ui->dateEditFrom, SIGNAL(dateChanged(QDate)),
             SLOT(slotDateChanged(QDate)) );
    connect( m_ui->dateEditTo, SIGNAL(dateChanged(QDate)),
             SLOT(slotDateChanged(QDate)) );
    connect( m_ui->checkBoxFrom, SIGNAL(clicked(bool)),
             SLOT(slotCheckBoxChecked(bool)) );
    connect( m_ui->checkBoxUntil, SIGNAL(clicked(bool)),
             SLOT(slotCheckBoxChecked(bool)) );
}
void DTReceptionListWidget::setupActions()
{
    connect(ui->mDeCurrentDate, SIGNAL(dateChanged(QDate)), this, SLOT(slotDateChanged(QDate)));
    connect(&gSettings, SIGNAL(dataChanged(QString)), this, SLOT(slotParamChanged(QString)));
    connect(&gDataModule, SIGNAL(dbOpened()), this, SLOT(slotDbOpened()));
}