summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--microkde/kdeui/kjanuswidget.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/microkde/kdeui/kjanuswidget.cpp b/microkde/kdeui/kjanuswidget.cpp
index 7d25854..462c44f 100644
--- a/microkde/kdeui/kjanuswidget.cpp
+++ b/microkde/kdeui/kjanuswidget.cpp
@@ -9,49 +9,49 @@
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA. 18 * Boston, MA 02111-1307, USA.
19 */ 19 */
20 20
21#include <qpixmap.h> 21#include <qpixmap.h>
22#include <qbitmap.h> 22#include <qbitmap.h>
23#include <qlayout.h> 23#include <qlayout.h>
24#include <qlabel.h> 24#include <qlabel.h>
25#include <qwidgetstack.h> 25#include <qwidgetstack.h>
26#include <qtabwidget.h> 26#include <qtabwidget.h>
27#include <qlistview.h> 27#include <qlistview.h>
28#include <qhbox.h> 28#include <qhbox.h>
29#include <qvbox.h> 29#include <qvbox.h>
30#include <qgrid.h> 30#include <qgrid.h>
31#include <qpainter.h> 31#include <qpainter.h>
32#include <qobjectlist.h> 32#include <qobjectlist.h>
33 33#include <qstringlist.h>
34/*US 34/*US
35#include <qbitmap.h> 35#include <qbitmap.h>
36#include <qgrid.h> 36#include <qgrid.h>
37#include <qhbox.h> 37#include <qhbox.h>
38#include <qheader.h> 38#include <qheader.h>
39#include <qlabel.h> 39#include <qlabel.h>
40#include <qlayout.h> 40#include <qlayout.h>
41#include <qobjectlist.h> 41#include <qobjectlist.h>
42#include <qpixmap.h> 42#include <qpixmap.h>
43#include <qsplitter.h> 43#include <qsplitter.h>
44#include <qtabwidget.h> 44#include <qtabwidget.h>
45#include <qvbox.h> 45#include <qvbox.h>
46#include <qwidgetstack.h> 46#include <qwidgetstack.h>
47#include <qpainter.h> 47#include <qpainter.h>
48#include <qstyle.h> 48#include <qstyle.h>
49 49
50#include <kapplication.h> 50#include <kapplication.h>
51#include <klocale.h> 51#include <klocale.h>
52#include <kglobal.h> 52#include <kglobal.h>
53#include <kglobalsettings.h> 53#include <kglobalsettings.h>
54#include <kseparator.h> 54#include <kseparator.h>
55#include <kdebug.h> 55#include <kdebug.h>
56#include "kjanuswidget.h" 56#include "kjanuswidget.h"
57#include <klistview.h> 57#include <klistview.h>
@@ -275,48 +275,49 @@ QFrame *KJanusWidget::addPage( const QStringList &items, const QString &header,
275 return( 0 ); 275 return( 0 );
276 } 276 }
277 277
278 QFrame *page = new QFrame( FindParent(), "page" ); 278 QFrame *page = new QFrame( FindParent(), "page" );
279 addPageWidget( page, items, header, pixmap ); 279 addPageWidget( page, items, header, pixmap );
280 280
281 return page; 281 return page;
282} 282}
283 283
284void KJanusWidget::pageGone( QObject *obj ) 284void KJanusWidget::pageGone( QObject *obj )
285{ 285{
286// QObject* obj = (QObject*)sender(); 286// QObject* obj = (QObject*)sender();
287 removePage( static_cast<QWidget*>( obj ) ); 287 removePage( static_cast<QWidget*>( obj ) );
288} 288}
289 289
290void KJanusWidget::slotReopen( QListViewItem * item ) 290void KJanusWidget::slotReopen( QListViewItem * item )
291{ 291{
292 if( item ) 292 if( item )
293 item->setOpen( true ); 293 item->setOpen( true );
294} 294}
295 295
296QFrame *KJanusWidget::addPage( const QString &itemName, const QString &header, 296QFrame *KJanusWidget::addPage( const QString &itemName, const QString &header,
297 const QPixmap &pixmap ) 297 const QPixmap &pixmap )
298{ 298{
299
299 QStringList items; 300 QStringList items;
300 items << itemName; 301 items << itemName;
301 return addPage(items, header, pixmap); 302 return addPage(items, header, pixmap);
302} 303}
303 304
304 305
305 306
306QVBox *KJanusWidget::addVBoxPage( const QStringList &items, 307QVBox *KJanusWidget::addVBoxPage( const QStringList &items,
307 const QString &header, 308 const QString &header,
308 const QPixmap &pixmap ) 309 const QPixmap &pixmap )
309{ 310{
310 if( mValid == false ) 311 if( mValid == false )
311 { 312 {
312 qDebug("addPage: Invalid object "); 313 qDebug("addPage: Invalid object ");
313 314
314 return( 0 ); 315 return( 0 );
315 } 316 }
316 317
317 QVBox *page = new QVBox(FindParent() , "vbox_page" ); 318 QVBox *page = new QVBox(FindParent() , "vbox_page" );
318 page->setSpacing( KDialog::spacingHintSmall() ); 319 page->setSpacing( KDialog::spacingHintSmall() );
319 addPageWidget( page, items, header, pixmap ); 320 addPageWidget( page, items, header, pixmap );
320 321
321 return page; 322 return page;
322} 323}