Extend copyright to 2018.
[kdbg.git] / kdbg / threadlist.h
blob7a58b33b4efaaf2040bf19571102f47a9b006d90
1 /*
2 * Copyright Johannes Sixt
3 * This file is licensed under the GNU General Public License Version 2.
4 * See the file COPYING in the toplevel directory of the source directory.
5 */
7 #ifndef THREADLIST_H
8 #define THREADLIST_H
10 #include <QTreeWidget>
11 #include <QPixmap>
12 #include <list>
14 class ThreadInfo;
15 class ThreadEntry;
17 class ThreadList : public QTreeWidget
19 Q_OBJECT
20 public:
21 ThreadList(QWidget* parent);
22 ~ThreadList();
24 public slots:
25 void updateThreads(const std::list<ThreadInfo>&);
26 void slotCurrentChanged(QTreeWidgetItem*);
28 signals:
29 void setThread(int);
31 protected:
32 ThreadEntry* threadById(int id);
33 void makeNoFocusIcon();
35 QPixmap m_focusIcon;
36 QPixmap m_noFocusIcon;
39 #endif // THREADLIST_H