1
/***************************************************************************
2
* Copyright (C) 2008 by Alan Jones *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 3 of the License, or *
8
* (at your option) any later version. *
10
* This program is distributed in the hope that it will be useful, *
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13
* GNU General Public License for more details. *
15
* You should have received a copy of the GNU General Public License *
16
* along with this program; if not, write to the *
17
* Free Software Foundation, Inc., *
18
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
19
***************************************************************************/
22
#include <QVBoxLayout>
24
#include "sourcesview.h"
29
SourcesView::SourcesView(QWidget * parent) : QWidget(parent)
31
QVBoxLayout* layout = new QVBoxLayout(this);
32
layout->setSpacing(0);
35
toolBar = new KToolBar(this);
36
toolBar->setToolButtonStyle(Qt::ToolButtonIconOnly);
37
layout->addWidget(toolBar);
39
sourcesList = new QListView(this);
40
//sourcesList->setModel(model);
41
layout->addWidget(sourcesList);
43
connect(sourcesList,SIGNAL(doubleClicked(const QModelIndex &)),this,SIGNAL(doubleClicked(const QModelIndex&)));
b'\\ No newline at end of file'