Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[3e4acc]: libgui / TreeWidgetWrapper.cpp Maximize Restore History

Download this file

TreeWidgetWrapper.cpp    43 lines (36 with data), 1.8 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/***************************************************************************
TreeWidget.cpp - wrapper for QTreeWidget to get focus out information
-------------------
begin : Mon May 12 2008
copyright : (C) 2008 by Thomas Eschenbacher
email : Thomas.Eschenbacher@gmx.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include "config.h"
#include "TreeWidgetWrapper.h"
//***************************************************************************
TreeWidgetWrapper::TreeWidgetWrapper(QWidget *widget)
:QTreeWidget(widget)
{
}
//***************************************************************************
TreeWidgetWrapper::~TreeWidgetWrapper()
{
}
//***************************************************************************
void TreeWidgetWrapper::focusOutEvent(QFocusEvent *event)
{
QTreeWidget::focusOutEvent(event);
emit focusLost();
}
//***************************************************************************
#include "TreeWidgetWrapper.moc"
//***************************************************************************
//***************************************************************************