~neon/juk/master

« back to all changes in this revision

Viewing changes to playlistsplitter.cpp

  • Committer: Tim Beaulen
  • Date: 2006-10-14 20:33:34 UTC
  • Revision ID: git-v1:030e24d1144b63f5512c031336fe91b69ec59095
Less use of deprecated functions.


svn path=/trunk/KDE/kdemultimedia/juk/; revision=595556

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
////////////////////////////////////////////////////////////////////////////////
39
39
 
40
40
PlaylistSplitter::PlaylistSplitter(QWidget *parent, const char *name) :
41
 
    QSplitter(Qt::Horizontal, parent, name),
 
41
    QSplitter(Qt::Horizontal, parent),
42
42
    m_newVisible(0),
43
43
    m_playlistBox(0),
44
44
    m_searchWidget(0),
45
45
    m_playlistStack(0),
46
46
    m_editor(0)
47
47
{
 
48
    setObjectName(name);
 
49
 
48
50
    setupActions();
49
51
    setupLayout();
50
52
    readConfig();
135
137
 
136
138
    // Create a splitter to go between the playlists and the editor.
137
139
 
138
 
    QSplitter *editorSplitter = new QSplitter(Qt::Vertical, this, "editorSplitter");
 
140
    QSplitter *editorSplitter = new QSplitter(Qt::Vertical, this);
 
141
    editorSplitter->setObjectName("editorSplitter");
139
142
 
140
143
    // Create the playlist and the editor.
141
144
 
152
155
 
153
156
    // Make the editor as small as possible (or at least as small as recommended)
154
157
 
155
 
    editorSplitter->setResizeMode(m_editor, QSplitter::FollowSizeHint);
 
158
    editorSplitter->setStretchFactor(editorSplitter->indexOf(m_editor), 2);
156
159
 
157
160
    // Create the PlaylistBox
158
161
 
164
167
    connect(m_playlistBox, SIGNAL(signalPlaylistDestroyed(Playlist *)),
165
168
            m_editor, SLOT(slotPlaylistDestroyed(Playlist *)));
166
169
 
167
 
    moveToFirst(m_playlistBox);
 
170
    insertWidget(0, m_playlistBox);
168
171
 
169
172
    connect(CollectionList::instance(), SIGNAL(signalCollectionChanged()),
170
173
            m_editor, SLOT(slotUpdateCollection()));