~ubuntu-branches/ubuntu/lucid/konversation/lucid-updates

« back to all changes in this revision

Viewing changes to src/irc/serverlistview.h

  • Committer: Bazaar Package Importer
  • Author(s): Modestas Vainius
  • Date: 2009-05-19 09:44:08 UTC
  • mfrom: (1.16.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: james.westby@ubuntu.com-20090519094408-yi3yv1v4zzbsu2nx
Tags: 1.1.75+svn969816-1
* New upstream development snapshot:
  - Last Changed Author: tjmchenry
  - Last Changed Rev: 969816
  - Last Changed Date: 2009-05-19 04:45:54 +0300
  - Translations as of Tue, 19 May 2009 09:21:13 are included.
* Update download URL in debian/copyright.
* Update Debian menu icons.
* Update konversation.install: install translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
*/
7
7
 
8
8
/*
9
 
ServerListView is derived from K3ListView and implements custom
10
 
drag'n'drop behavior needed in ServerListDialog.
 
9
ServerListView is derived from QTreeWidget and implements overly
 
10
complex custom drag'n'drop behavior needed in ServerListDialog.
11
11
 
12
12
Copyright (C) 2006 Eike Hein <hein@kde.org>
13
13
*/
26
26
    public:
27
27
        explicit ServerListView(QWidget *parent);
28
28
        ~ServerListView();
29
 
        
30
 
        QList<QTreeWidgetItem*> selectedServerListItems();
31
 
        
 
29
 
 
30
    private:
 
31
        bool badDropSelection();
32
32
    signals:
33
33
        void moved();
34
34
        void aboutToMove();
35
35
        
36
 
    private:
37
 
        int m_dropPosition;
38
 
        QRect m_dropRect;
39
 
        
40
36
    protected:        
41
 
        void dragEnterEvent(QDragEnterEvent *e);
42
37
        void dragMoveEvent(QDragMoveEvent *e);
43
38
        void dragLeaveEvent(QDragLeaveEvent *);
44
 
        int position(const QPoint &pos, const QRect &rect);
45
 
        void paintDropIndicator(QPainter *painter);
46
 
        void paintEvent(QPaintEvent *event);
47
39
        void dropEvent(QDropEvent *event);
48
 
        bool dropOn(QDropEvent *event, int *dropRow, int *dropCol, QModelIndex *dropIndex);
49
 
        bool droppingOnItself(QDropEvent *event, const QModelIndex &index);
50
40
};
51
41
 
52
42
#endif