~ubuntu-branches/ubuntu/vivid/kdesdk/vivid

« back to all changes in this revision

Viewing changes to okteta/kasten/controllers/view/bookmarks/bookmarksview.cpp

  • Committer: Package Import Robot
  • Author(s): Harald Sitter, Harald Sitter, Philip Muškovac
  • Date: 2012-09-10 18:27:36 UTC
  • mfrom: (0.4.24)
  • Revision ID: package-import@ubuntu.com-20120910182736-6tyibsfau626xll8
Tags: 4:4.9.1-0ubuntu1
[ Harald Sitter ]
* New upstream release

[ Philip Muškovac ]
* Change sonames from 4.9.0 to 4.9.* 

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
#include <KPushButton>
32
32
#include <KLocale>
33
33
#include <KGuiItem>
34
 
#include <KToolBar>
35
 
// #include <KActionCollection>
36
34
// Qt
37
35
#include <QtGui/QLayout>
38
36
#include <QtGui/QTreeView>
53
51
    QVBoxLayout* baseLayout = new QVBoxLayout( this );
54
52
    baseLayout->setMargin( 0 );
55
53
 
56
 
    // tool bar
57
 
    KToolBar* toolbar = new KToolBar( this );
58
 
    toolbar->setMovable( false );
59
 
    toolbar->setToolButtonStyle( Qt::ToolButtonIconOnly );
60
 
    toolbar->setIconDimensions( 16 );
61
 
    toolbar->setContextMenuPolicy( Qt::NoContextMenu );
62
 
    baseLayout->addWidget( toolbar );
63
 
 
64
54
    mBookmarkListView = new QTreeView( this );
65
55
    mBookmarkListView->setObjectName( QLatin1String( "BookmarkListView" ) );
66
56
    mBookmarkListView->setRootIsDecorated( false );
78
68
 
79
69
    baseLayout->addWidget( mBookmarkListView, 10 );
80
70
 
81
 
    // actions TODO: make this view work like the filebrowser?
82
 
//     KActionCollection* actionCollection = new KActionCollection( this );
83
 
 
84
 
 
85
71
    QHBoxLayout* actionsLayout = new QHBoxLayout();
86
72
 
87
73
    const KGuiItem createBookmarkGuiItem =