~ubuntu-branches/ubuntu/gutsy/kdebase-workspace/gutsy-backports

« back to all changes in this revision

Viewing changes to systemsettings/mainwindow.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2007-10-31 19:16:54 UTC
  • Revision ID: james.westby@ubuntu.com-20071031191654-xuof6e1jg6uxqaze
Tags: 3.95.0-0ubuntu1~gutsy1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
85
85
        QScrollArea *modulesScroller;
86
86
        moduleTabs->show();
87
87
 
88
 
    foreach( const MenuItem &item , subMenus ) {
 
88
        foreach( const MenuItem &item , subMenus ) {
89
89
                if( item.menu ) {
90
90
                        modulesScroller = new QScrollArea(moduleTabs);
91
91
 
92
 
            modulesScroller->setFrameStyle( QFrame::NoFrame );
 
92
                        modulesScroller->setFrameStyle( QFrame::NoFrame );
93
93
 
94
94
                        modulesScroller->setWidgetResizable(true);
95
95
                        ModulesView *modulesView = new ModulesView( menu, item.subMenu, modulesScroller );
187
187
 
188
188
        // Now it's time to draw our display
189
189
        foreach( const MenuItem &item , menu->menuList() ) {
190
 
                if( item.menu ) {
 
190
                if( item.menu ) {
191
191
                        KServiceGroup::Ptr group = KServiceGroup::group( item.subMenu );
192
192
                        if ( !group ){
193
193
                                kDebug() << "Invalid Group \"" << item.subMenu << "\".  Check your installation.";
364
364
        } else {
365
365
                
366
366
                if(length>=1) {
367
 
                        generalHitLabel->setText(i18np("%1 hit in General","%1 hits in General",hitList[1]));
 
367
                        generalHitLabel->setText(i18np("%1 hit in General","%1 hits in General",hitList[0]));
368
368
                }
369
369
        
370
370
                if(length>=2) {
371
 
                        advancedHitLabel->setText(i18np("%1 hit in Advanced","%1 hits in Advanced",hitList[0]));
 
371
                        advancedHitLabel->setText(i18np("%1 hit in Advanced","%1 hits in Advanced",hitList[1]));
372
372
                }
373
373
 
374
374
        }