Author: tgoettlicher Date: Fri Nov 23 13:14:21 2007 New Revision: 7898 URL: http://svn.opensuse.org/viewcvs/zypp?rev=7898&view=rev Log: cleanup Modified: trunk/updater-kde/updater/simpleview.cpp Modified: trunk/updater-kde/updater/simpleview.cpp URL: http://svn.opensuse.org/viewcvs/zypp/trunk/updater-kde/updater/simpleview.cpp?rev=7898&r1=7897&r2=7898&view=diff ============================================================================== --- trunk/updater-kde/updater/simpleview.cpp (original) +++ trunk/updater-kde/updater/simpleview.cpp Fri Nov 23 13:14:21 2007 @@ -27,21 +27,21 @@ setCentralWidget( centralWidget ); QGridLayout *layout = new QGridLayout(centralWidget); - layout->setSpacing(5); - layout->setMargin(10); + layout->setSpacing(5); + layout->setMargin(10); // ------------------- Header -------------------------- - QLabel *suseLogo = new QLabel(this); - QPixmap *pic = new QPixmap(KGlobal::iconLoader()->loadIcon(PROGRAM_ICON, KIcon::Panel, KIcon::SizeHuge)); - suseLogo->setPixmap(*pic); + QLabel *suseLogo = new QLabel(this); + QPixmap *pic = new QPixmap(KGlobal::iconLoader()->loadIcon(PROGRAM_ICON, KIcon::Panel, KIcon::SizeHuge)); + suseLogo->setPixmap(*pic); headline = new QLabel(centralWidget); headline->setText(i18n("<b>New software for your system is available</b>")); - headline->setAlignment(Qt::SingleLine); + headline->setAlignment(Qt::SingleLine); - layout->addMultiCellWidget(suseLogo,0,1,0,0); - layout->addMultiCellWidget(headline,0,0,1,3); + layout->addMultiCellWidget(suseLogo,0,1,0,0); + layout->addMultiCellWidget(headline,0,0,1,3); // ------------------ Boxes ---------------------------- @@ -51,14 +51,14 @@ textBrowser = new QTextBrowser( centralWidget); recommended = new QCheckBox(i18n("Install %n recommended update additionally", - "Install %n recommended updates additionally", 0), centralWidget); + "Install %n recommended updates additionally", 0), centralWidget); recommended->setChecked(true); additionalText = new QLabel(centralWidget); additionalText->setText(i18n( "Install %n recommended update additionally", - "Install %n recommended updates additionally",0)); + "Install %n recommended updates additionally",0)); norestart = new QCheckBox(i18n("Don't install updates that require a restart"), centralWidget); @@ -75,9 +75,9 @@ // -------------------- Buttons ------------------------ details = new KPushButton(i18n("Details"),centralWidget); - install = new KPushButton(KStdGuiItem::ok(), centralWidget); - ok = new KPushButton(KStdGuiItem::close(), centralWidget); - install->setText(i18n("Install")); + install = new KPushButton(KStdGuiItem::ok(), centralWidget); + ok = new KPushButton(KStdGuiItem::close(), centralWidget); + install->setText(i18n("Install")); // -------------------------- layout ----------------------- @@ -88,12 +88,12 @@ // -------------------------- connect ----------------------- - connect(details, SIGNAL(clicked()), this, SLOT(slotDetailsButtonClicked())); - connect(install, SIGNAL(clicked()), this, SLOT(slotStartInstall())); - connect(ok, SIGNAL(clicked()), this, SLOT(hide())); + connect(details, SIGNAL(clicked()), this, SLOT(slotDetailsButtonClicked())); + connect(install, SIGNAL(clicked()), this, SLOT(slotStartInstall())); + connect(ok, SIGNAL(clicked()), this, SLOT(hide())); - connect(recommended, SIGNAL(clicked()), this, SLOT(updateSelection())); - connect(norestart, SIGNAL(clicked()), this, SLOT(updateSelection())); + connect(recommended, SIGNAL(clicked()), this, SLOT(updateSelection())); + connect(norestart, SIGNAL(clicked()), this, SLOT(updateSelection())); setState(APPLET_NO_UPDATES); @@ -237,21 +237,21 @@ headline->setText(i18n("<b>New software for your system is available</b>")); title->show(); title->setText(i18n("%n security update is available", - "%n security updates are available", securityCount)); + "%n security updates are available", securityCount)); if (recommendedCount > 0 ) { if ( _detailWindow->getUpdaterCapabilities().canSelectIndividualUpdates ) { recommended->setText(i18n("Install %n recommended update additionally", - "Install %n recommended updates additionally", recommendedCount)); + "Install %n recommended updates additionally", recommendedCount)); recommended->show(); additionalText->hide(); } else { additionalText->setText(i18n("%n recommended update is available", - "%n recommended updates are available", recommendedCount)); + "%n recommended updates are available", recommendedCount)); additionalText->show(); recommended->hide(); } @@ -280,7 +280,7 @@ { install->setEnabled(false); title->setText(i18n("%n optional update is available.<br>You can select optional updates in the detailed dialog.", - "%n optional updates are available.<br>You can select optional updates in the detailed dialog.", totalCount)); + "%n optional updates are available.<br>You can select optional updates in the detailed dialog.", totalCount)); } break; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org