~ubuntu-branches/ubuntu/jaunty/psi/jaunty

« back to all changes in this revision

Viewing changes to src/tools/contactlist/contactlistview.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Niehusmann
  • Date: 2008-04-14 18:57:30 UTC
  • mfrom: (2.1.9 hardy)
  • Revision ID: james.westby@ubuntu.com-20080414185730-528re3zp0m2hdlhi
Tags: 0.11-8
* added CONFIG -= link_prl to .pro files and removed dependencies
  which are made unnecessary by this change
* Fix segfault when closing last chat tab with qt4.4
  (This is from upstream svn, rev. 1101) (Closes: Bug#476122)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef CONTACTLISTVIEW_H
 
2
#define CONTACTLISTVIEW_H
 
3
 
 
4
#include <QTreeView>
 
5
 
 
6
class QWidget;
 
7
 
 
8
class ContactListView : public QTreeView
 
9
{
 
10
        Q_OBJECT
 
11
 
 
12
public:
 
13
        ContactListView(QWidget* parent = 0);
 
14
 
 
15
        bool largeIcons() const;
 
16
        bool showIcons() const;
 
17
 
 
18
        // Reimplemented
 
19
        void setModel(QAbstractItemModel* model);
 
20
 
 
21
public slots:
 
22
        void resetExpandedState();
 
23
        void setShowIcons(bool);
 
24
        void setLargeIcons(bool);
 
25
        void resizeColumns();
 
26
 
 
27
protected:
 
28
        void contextMenuEvent(QContextMenuEvent*);
 
29
        virtual void doItemsLayout();
 
30
        //void drawBranches(QPainter*, const QRect&, const QModelIndex&) const;
 
31
 
 
32
private:
 
33
        bool largeIcons_, showIcons_;
 
34
};
 
35
 
 
36
#endif