#include "kdganttview.h"
#include "kdganttview_p.h"
#include "kdganttitemdelegate.h"
#include "kdganttgraphicsitem.h"
#include <QAbstractItemModel>
#include <QHeaderView>
#include <QVBoxLayout>
#include <QGraphicsItem>
#include <QGraphicsRectItem>
#include <QScrollBar>
#include <QPaintEvent>
#include <QDebug>
#include <cassert>
#include "moc_kdganttview.cpp"
#include "unittest/test.h"
#include "kdganttlistviewrowcontroller.h"
#include <QApplication>
#include <QTimer>
#include <QPixmap>
#include <QListView>
Go to the source code of this file.
Defines | |
#define | d d_func() |
Functions | |
KDAB_SCOPED_UNITTEST_SIMPLE (KDGantt, View,"test") | |
std::ostream & | operator<< (std::ostream &os, const QImage &img) |
#define d d_func() |
Definition at line 224 of file kdganttview.cpp.
KDAB_SCOPED_UNITTEST_SIMPLE | ( | KDGantt | , | |
View | , | |||
"test" | ||||
) |
Definition at line 538 of file kdganttview.cpp.
References assertEqual, KDGantt::View::ganttProxyModel(), KDGantt::View::setLeftView(), and KDGantt::View::setRowController().
00538 { 00539 View view( 0 ); 00540 #if 0 // GUI tests do not work well on the server 00541 QTimer::singleShot( 1000, qApp, SLOT( quit() ) ); 00542 view.show(); 00543 00544 qApp->exec(); 00545 QPixmap screenshot1 = QPixmap::grabWidget( &view ); 00546 00547 QTreeView* tv = new QTreeView; 00548 view.setLeftView( tv ); 00549 view.setRowController( new TreeViewRowController(tv,view.ganttProxyModel()) ); 00550 00551 QTimer::singleShot( 1000, qApp, SLOT( quit() ) ); 00552 00553 qApp->exec(); 00554 QPixmap screenshot2 = QPixmap::grabWidget( &view ); 00555 00556 assertEqual( screenshot1.toImage(), screenshot2.toImage() ); 00557 00558 QListView* lv = new QListView; 00559 view.setLeftView(lv); 00560 view.setRowController( new ListViewRowController(lv,view.ganttProxyModel())); 00561 view.show(); 00562 QTimer::singleShot( 1000, qApp, SLOT( quit() ) ); 00563 qApp->exec(); 00564 #endif 00565 }
std::ostream& @39::operator<< | ( | std::ostream & | os, | |
const QImage & | img | |||
) | [static] |
Definition at line 531 of file kdganttview.cpp.
00532 { 00533 os << "QImage[ size=("<<img.width()<<", "<<img.height()<<")]"; 00534 return os; 00535 }