[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdeutils/klaptopdaemon
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2004-07-12 17:02:13
Message-ID: 20040712170213.C98012013 () office ! kde ! org
[Download RAW message or body]

CVS commit by aacid: 

Get rid of a shell warning telling that a layout was beign added to a widget that \
already had a layout


  M +1 -3      apm.cpp   1.14


--- kdeutils/klaptopdaemon/apm.cpp  #1.13:1.14
@@ -95,5 +95,5 @@ ApmConfig::ApmConfig (QWidget * parent, 
                                           "or use the button below to make the %1 \
                application\n"
                                           "set-uid root").arg(apm_name), this));
-    QHBoxLayout *ll = new QHBoxLayout(this);
+    QHBoxLayout *ll = new QHBoxLayout(top_layout);
     QPushButton *setupButton = new QPushButton(i18n("Setup Helper Application"), \
this);  connect( setupButton, SIGNAL(clicked()), this, SLOT(setupHelper()) );
@@ -102,5 +102,4 @@ ApmConfig::ApmConfig (QWidget * parent, 
     ll->addWidget(setupButton);
     ll->addStretch(8);
-    top_layout->addLayout(ll);
     if (laptop_portable::has_software_suspend()) {
         top_layout->addWidget( new QLabel( i18n("Your system seems to have 'Software \
Suspend' installed, this can\n" @@ -124,5 +123,4 @@ ApmConfig::ApmConfig (QWidget * \
parent,   ll->addWidget(setupSSButton);
         ll->addStretch(8);
-        top_layout->addLayout(ll);
     } else {
         enableSoftwareSuspendHibernate = 0;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic