Warning, file /multimedia/amarok/src/context/ContextDock.cpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001 /**************************************************************************************** 0002 * Copyright (c) 2010 Nikolaj Hald Nielsen <nhn@kde.org> * 0003 * * 0004 * This program is free software; you can redistribute it and/or modify it under * 0005 * the terms of the GNU General Public License as published by the Free Software * 0006 * Foundation; either version 2 of the License, or (at your option) any later * 0007 * version. * 0008 * * 0009 * This program is distributed in the hope that it will be useful, but WITHOUT ANY * 0010 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A * 0011 * PARTICULAR PURPOSE. See the GNU General Public License for more details. * 0012 * * 0013 * You should have received a copy of the GNU General Public License along with * 0014 * this program. If not, see <http://www.gnu.org/licenses/>. * 0015 ****************************************************************************************/ 0016 0017 #define DEBUG_PREFIX "ContextDock" 0018 0019 #include "ContextDock.h" 0020 0021 #include "context/ContextView.h" 0022 #include "core/support/Debug.h" 0023 0024 #include <KLocalizedString> 0025 0026 ContextDock::ContextDock( QWidget *parent ) 0027 : AmarokDockWidget( i18n( "&Context" ), parent ) 0028 { 0029 setObjectName( QStringLiteral("Context dock") ); 0030 setAllowedAreas( Qt::AllDockWidgetAreas ); 0031 setMinimumWidth( 50 ); 0032 setContentsMargins( 0, 0, 0, 0 ); 0033 0034 createContextView(); 0035 } 0036 0037 void ContextDock::polish() 0038 { 0039 } 0040 0041 void 0042 ContextDock::createContextView() 0043 { 0044 auto mainWidget = new Context::ContextView(); 0045 mainWidget->setMinimumWidth( 400 ); 0046 mainWidget->setSizePolicy( QSizePolicy::Expanding, QSizePolicy::Expanding ); 0047 mainWidget->setContentsMargins( 0, 0, 0, 0 ); 0048 setWidget( mainWidget ); 0049 0050 PERF_LOG( "ContexView created" ) 0051 } 0052 0053