9 setSortingEnabled(
true);
10 sortByColumn(0, Qt::AscendingOrder);
18 inherited::paintEvent(event);
20 int elapsed = tic.elapsed();
25 tr(
"QxrdFileBrowserView::paintEvent took %1 msec").arg(elapsed));
35 inherited::dataChanged(topLeft,bottomRight,roles);
37 int elapsed = tic.elapsed();
42 tr(
"QxrdFileBrowserView::dataChanged took %1 msec").arg(elapsed));
52 QModelIndex result = inherited::indexAt(point);
54 int elapsed = tic.elapsed();
59 tr(
"QxrdFileBrowserView::indexAt took %1 msec").arg(elapsed));
71 inherited::keyboardSearch(search);
73 int elapsed = tic.elapsed();
78 tr(
"QxrdFileBrowserView::keyboardSearch took %1 msec").arg(elapsed));
90 int elapsed = tic.elapsed();
95 tr(
"QxrdFileBrowserView::reset took %1 msec").arg(elapsed));
105 inherited::scrollTo(index, hint);
107 int elapsed = tic.elapsed();
109 if (elapsed > 1000) {
112 tr(
"QxrdFileBrowserView::scrollTo took %1 msec").arg(elapsed));
122 inherited::selectAll();
124 int elapsed = tic.elapsed();
126 if (elapsed > 1000) {
129 tr(
"QxrdFileBrowserView::selectAll took %1 msec").arg(elapsed));
139 inherited::setModel(model);
141 int elapsed = tic.elapsed();
143 if (elapsed > 1000) {
146 tr(
"QxrdFileBrowserView::setModel took %1 msec").arg(elapsed));
156 inherited::setSelectionModel(selectionModel);
158 int elapsed = tic.elapsed();
160 if (elapsed > 1000) {
163 tr(
"QxrdFileBrowserView::setSelectionModel took %1 msec").arg(elapsed));
173 QRect result = inherited::visualRect(index);
175 int elapsed = tic.elapsed();
177 if (elapsed > 1000) {
180 tr(
"QxrdFileBrowserView::visualRect took %1 msec").arg(elapsed));
virtual void keyboardSearch(const QString &search)
virtual QRect visualRect(const QModelIndex &index) const
QxrdFileBrowserView(QWidget *parent=0)
virtual void setSelectionModel(QItemSelectionModel *selectionModel)
virtual void scrollTo(const QModelIndex &index, ScrollHint hint=EnsureVisible)
virtual void dataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight, const QVector< int > &roles=QVector< int >())
virtual QModelIndex indexAt(const QPoint &point) const
virtual void setModel(QAbstractItemModel *model)
virtual void printMessage(QString msg, QDateTime ts=QDateTime::currentDateTime())=0
QcepApplication * g_Application
void paintEvent(QPaintEvent *event)