comparison widgets/QueryResultsWidget.h @ 144:f3dce7a985cf

result display is better now.
author benoitrigolleau
date Tue, 13 Nov 2007 11:09:57 +0000
parents c26c73ca6d37
children fd4d0ccb7bc3
comparison
equal deleted inserted replaced
143:97fd6148fb8e 144:f3dce7a985cf
27 QueryResultsWidget(); 27 QueryResultsWidget();
28 virtual ~QueryResultsWidget(); 28 virtual ~QueryResultsWidget();
29 29
30 void newResult(); 30 void newResult();
31 void addInfo(const QString& name, const QString& value); 31 void addInfo(const QString& name, const QString& value);
32 32 void saveCurResult();
33 void displayResult(); 33 void displayResult();
34 34
35 void reset(); 35 void reset();
36 36
37 protected: 37 protected:
38
39 void addTop();
40 void addFoot();
41 void addResultWidget(QString author,QString title, QString uri, int type);
42
43
38 QScrollArea * m_scrollArea; 44 QScrollArea * m_scrollArea;
39 QGridLayout *m_resultsLayout; 45 QGridLayout *m_resultsLayout;
40 46
41 int m_ndResults; 47 int m_currentRow;
42
43 struct Info 48 struct Info
44 { 49 {
45 QString name; 50 QString name;
46 QString value; 51 QString value;
47 }; 52 };
48 53
49 std::vector<Info> m_curResult; 54 std::vector<Info> *m_curResult;
55 std::vector<std::vector<Info>*> m_allresults;
50 56
51 }; 57 };
52 58
53 59
54 #endif 60 #endif