Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54858 - in /branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src: YQPackageSelector.cc YQPackageSelector.h
  • From: sh-sh-sh@xxxxxxxxxxxxxxxx
  • Date: Wed, 21 Jan 2009 13:12:01 -0000
  • Message-id: <E1LPcsD-0004Br-JT@xxxxxxxxxxxxxxxx>
Author: sh-sh-sh
Date: Wed Jan 21 14:12:01 2009
New Revision: 54858

URL: http://svn.opensuse.org/viewcvs/yast?rev=54858&view=rev
Log:
coding style

Modified:
branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc
branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.h

Modified: branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc?rev=54858&r1=54857&r2=54858&view=diff
==============================================================================
--- branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc
(original)
+++ branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.cc Wed Jan
21 14:12:01 2009
@@ -134,7 +134,6 @@
if ( onlineUpdateMode() ) yuiMilestone() << "Online update mode" << endl;
if ( updateMode() ) yuiMilestone() << "Update mode" << endl;

-
basicLayout();
addMenus(); // Only after all widgets are created!
makeConnections();
@@ -208,12 +207,14 @@
#endif
}

+
std::string
YQPackageSelector::iconPath( const std::string &name, int size )
{
return zypp::str::form("%s/share/icons/hicolor/%dx%d/apps/%s.png", PREFIX,
size, size, name.c_str());
}

+
void
YQPackageSelector::basicLayout()
{
@@ -226,13 +227,10 @@
Q_CHECK_PTR( outer_splitter );

outer_splitter->setSizePolicy( QSizePolicy( QSizePolicy::Expanding,
QSizePolicy::Expanding ) );
-
outer_splitter->setObjectName( "outer_splitter" );
-
layout->addWidget(outer_splitter);

QWidget * left_pane = layoutLeftPane ( outer_splitter );
-
QWidget * right_pane = layoutRightPane( outer_splitter );

outer_splitter->setStretchFactor(outer_splitter->indexOf(left_pane), 0);
@@ -245,7 +243,7 @@
{
QSplitter * splitter = new QSplitter( Qt::Vertical, parent );
Q_CHECK_PTR( splitter );
- splitter->setObjectName( "leftpanesplitter" );
+ splitter->setObjectName( "left_pane_splitter" );

QWidget * upper_vbox = new QWidget( splitter );
QVBoxLayout *layout = new QVBoxLayout(upper_vbox);
@@ -398,18 +396,14 @@
QWidget * right_pane_vbox = new QWidget( parent );

QVBoxLayout *layout = new QVBoxLayout( right_pane_vbox );
-
Q_CHECK_PTR( right_pane_vbox );

QSplitter * splitter = new QSplitter( Qt::Vertical, right_pane_vbox );
Q_CHECK_PTR( splitter );
layout->addWidget(splitter);

- Q_CHECK_PTR( splitter );
layoutPkgList( splitter );
-
layoutDetailsViews( splitter );
-
layoutButtons( right_pane_vbox );

return right_pane_vbox;

Modified: branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.h
URL:
http://svn.opensuse.org/viewcvs/yast/branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.h?rev=54858&r1=54857&r2=54858&view=diff
==============================================================================
--- branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.h
(original)
+++ branches/tmp/sh/tabbed-pkg-browsing/qt-pkg/src/YQPackageSelector.h Wed Jan
21 14:12:01 2009
@@ -313,14 +313,14 @@
YQPkgPatchList * _patchList;

QMenuBar * _menuBar;
- QMenu * _fileMenu;
- QMenu * _viewMenu;
- QMenu * _pkgMenu;
- QMenu * _patchMenu;
- QMenu * _configMenu;
- QMenu * _dependencyMenu;
- QMenu * _extrasMenu;
- QMenu * _helpMenu;
+ QMenu * _fileMenu;
+ QMenu * _viewMenu;
+ QMenu * _pkgMenu;
+ QMenu * _patchMenu;
+ QMenu * _configMenu;
+ QMenu * _dependencyMenu;
+ QMenu * _extrasMenu;
+ QMenu * _helpMenu;

QAction *_showDevelAction;
QAction *_showDebugAction;

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages