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

List:       kde-devel
Subject:    Re: Kmix patch
From:       dantti85-dev () yahoo ! com ! br
Date:       2009-06-10 6:01:01
Message-ID: 111253.88405.qm () web32106 ! mail ! mud ! yahoo ! com
[Download RAW message or body]

Sorry, i forgot to undo a change, please try this
diff.

Thanks,
Daniel.


->>>>>>>>>>>>>>>>>>>.
Hi,
I was a bit upset with kmix widget
that had no rounded borders that i decided to
try fixing it, well the patch works but imo
needs to clean up the useless code a bit.

I'm just showing it now to see if there are
any issues with this as QWidgetAction
is said to not work well with MacOs.

Daniel.



      Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com


      Veja quais são os assuntos do momento no Yahoo! +Buscados
http://br.maisbuscados.yahoo.com
["kmix.diff" (text/x-diff)]

Index: kmix.cpp
===================================================================
--- kmix.cpp	(revisão 979132)
+++ kmix.cpp	(cópia de trabalho)
@@ -215,18 +215,25 @@
       return false;
    }
 
-    // create dock widget and the corresponding popup
-    /* A GUIProfile does not make sense for the DockAreaPopup => Using \
(GUIProfile*)0 */ +   // create dock widget and the corresponding popup
+   /* A GUIProfile does not make sense for the DockAreaPopup => Using (GUIProfile*)0 \
*/  QWidget* referenceWidgetForSystray = this;
-     if ( m_volumeWidget ) {
+   if ( m_volumeWidget ) {
       _dockAreaPopup = new ViewDockAreaPopup(0, "dockArea", \
Mixer::getGlobalMasterMixer(), 0, (GUIProfile*)0, this);  \
                _dockAreaPopup->createDeviceWidgets();
-      referenceWidgetForSystray = _dockAreaPopup;
-    }
-    m_dockWidget = new KMixDockWidget( this, referenceWidgetForSystray, \
                _dockAreaPopup );
-    //m_dockWidget->show();
-    connect(m_dockWidget, SIGNAL(newMasterSelected()), SLOT(saveConfig()) );
-    return true;
+
+      QMenu *vol_menu = new QMenu(this);
+      QWidgetAction *vol_widget = new QWidgetAction(vol_menu);
+      vol_widget->setDefaultWidget(_dockAreaPopup);
+      vol_menu->addAction(vol_widget);
+      referenceWidgetForSystray = vol_menu;
+
+//       referenceWidgetForSystray = _dockAreaPopup;
+   }
+   m_dockWidget = new KMixDockWidget( this, referenceWidgetForSystray, \
_dockAreaPopup ); +   //m_dockWidget->show();
+   connect(m_dockWidget, SIGNAL(newMasterSelected()), SLOT(saveConfig()) );
+   return true;
 }
 
 void KMixWindow::saveConfig()
Index: viewdockareapopup.cpp
===================================================================
--- viewdockareapopup.cpp	(revisão 979132)
+++ viewdockareapopup.cpp	(cópia de trabalho)
@@ -50,7 +50,7 @@
     _frame = new QFrame( this );
     layout->addWidget( _frame );
 
-    _frame->setFrameStyle( QFrame::StyledPanel | QFrame::Raised );
+//     _frame->setFrameStyle( QFrame::StyledPanel | QFrame::Raised );
 
     _layoutMDW = new QGridLayout( _frame );
     _layoutMDW->setSpacing( KDialog::spacingHint() );



>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<


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

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