~ubuntu-branches/ubuntu/lucid/ktorrent/lucid

« back to all changes in this revision

Viewing changes to plugins/bitfinder/source/sourcesview.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Richard Birnie
  • Date: 2008-06-03 20:32:46 UTC
  • mfrom: (1.1.20 upstream)
  • Revision ID: james.westby@ubuntu.com-20080603203246-dfyemn010uhsf433
Tags: 3.1~rc1+dfsg.1-1ubuntu1
* New upstream development release      
 - Dropped 01_support_external_libbtcore.diffm,
   97_fix_target_link_libraries.diff,
   99_libbtcore_scramble_soname.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2008 by Alan Jones                                      *
 
3
 *   skyphyr@gmail.com                                                     *
 
4
 *                                                                         *
 
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.                                   *
 
9
 *                                                                         *
 
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.                          *
 
14
 *                                                                         *
 
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
 ***************************************************************************/
 
20
#include <ktoolbar.h>
 
21
 
 
22
#include <QVBoxLayout>
 
23
 
 
24
#include "sourcesview.h"
 
25
 
 
26
namespace kt
 
27
        {
 
28
        
 
29
        SourcesView::SourcesView(QWidget * parent) : QWidget(parent)
 
30
                {
 
31
                QVBoxLayout* layout = new QVBoxLayout(this);
 
32
                layout->setSpacing(0);
 
33
                layout->setMargin(0);
 
34
                
 
35
                toolBar = new KToolBar(this);
 
36
                toolBar->setToolButtonStyle(Qt::ToolButtonIconOnly);
 
37
                layout->addWidget(toolBar);
 
38
                
 
39
                sourcesList = new QListView(this);
 
40
                //sourcesList->setModel(model);
 
41
                layout->addWidget(sourcesList);
 
42
                
 
43
                connect(sourcesList,SIGNAL(doubleClicked(const QModelIndex &)),this,SIGNAL(doubleClicked(const QModelIndex&)));
 
44
                }
 
45
                
 
46
        }
 
 
b'\\ No newline at end of file'