ktimetracker
historydialog.cpp
Go to the documentation of this file.
38 QWidget *createEditor( QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &) const
49 QDateTime dateTime = QDateTime::fromString( index.model()->data( index, Qt::DisplayRole ).toString(), "yyyy-MM-dd HH:mm:ss" );
61 void updateEditorGeometry( QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &) const
74 HistoryWidgetDelegate *historyWidgetDelegate = new HistoryWidgetDelegate( m_ui->historytablewidget );
99 // if sorting is enabled and we write to row x, we cannot be sure row x will be in row x some lines later
115 KCalCore::Incidence::Ptr parent = calendar ? calendar->incidence( (*i)->relatedTo() ) : KCalCore::Incidence::Ptr();
126 m_ui->historytablewidget->setItem( row, 1, new QTableWidgetItem( start.toString( "yyyy-MM-dd HH:mm:ss" ) ) );
127 m_ui->historytablewidget->setItem( row, 2, new QTableWidgetItem( end.toString( "yyyy-MM-dd HH:mm:ss" ) ) );
173 kDebug( 5970 ) << "user changed StartDate to" << m_ui->historytablewidget->item( row, col )->text();
183 QDateTime datetime = QDateTime::fromString( m_ui->historytablewidget->item( row, col )->text(), "yyyy-MM-dd HH:mm:ss" );
206 QDateTime datetime = QDateTime::fromString( m_ui->historytablewidget->item( row, col )->text(), "yyyy-MM-dd HH:mm:ss" );
250 QString uid = m_ui->historytablewidget->item( m_ui->historytablewidget->currentRow(), 4 )->text();
269 m_ui->historytablewidget->setCurrentCell(0,0); // you need to change the cell to store the value
QString toString(Qt::DateFormat format) const
bool close()
Type type() const
void setWhatsThis(const QString &whatsThis)
void setGeometry(int x, int y, int w, int h)
void setMinimumSize(const QSize &)
QDateTime fromTime_t(uint seconds)
virtual void setEditorData(QWidget *editor, const QModelIndex &index) const
virtual void updateEditorGeometry(QWidget *editor, const QStyleOptionViewItem &option, const QModelIndex &index) const
virtual QVariant data(const QModelIndex &index, int role) const =0
virtual void changeEvent(QEvent *event)
QDateTime fromString(const QString &string, Qt::DateFormat format)
virtual QWidget * createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
virtual void setModelData(QWidget *editor, QAbstractItemModel *model, const QModelIndex &index) const
void setFlags(QFlags< Qt::ItemFlag > flags)
const QAbstractItemModel * model() const
KTimeTracker::KTTCalendar::Ptr calendar() const
Definition: timetrackerstorage.cpp:1073
QString removeEvent(QString uid)
Definition: timetrackerstorage.cpp:494
virtual bool setData(const QModelIndex &index, const QVariant &value, int role)
Definition: historydialog.h:33
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
QString toString() const
int height() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.