[rkward-cvs] SF.net SVN: rkward: [879] trunk/rkward
tfry at users.sourceforge.net
tfry at users.sourceforge.net
Tue Oct 17 16:10:30 UTC 2006
Revision: 879
http://svn.sourceforge.net/rkward/?rev=879&view=rev
Author: tfry
Date: 2006-10-17 09:10:19 -0700 (Tue, 17 Oct 2006)
Log Message:
-----------
Fix some focus problems
Modified Paths:
--------------
trunk/rkward/ChangeLog
trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp
trunk/rkward/rkward/windows/rkhtmlwindow.cpp
trunk/rkward/rkward/windows/rkworkplaceview.cpp
Modified: trunk/rkward/ChangeLog
===================================================================
--- trunk/rkward/ChangeLog 2006-10-17 15:34:57 UTC (rev 878)
+++ trunk/rkward/ChangeLog 2006-10-17 16:10:19 UTC (rev 879)
@@ -1,3 +1,4 @@
+- fix some focus problems
- provide close buttons in tab bar
--- Version 0.4.0 - Oct-17-2006
Modified: trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp 2006-10-17 15:34:57 UTC (rev 878)
+++ trunk/rkward/rkward/windows/rkcommandeditorwindow.cpp 2006-10-17 16:10:19 UTC (rev 879)
@@ -72,6 +72,7 @@
RKCommonFunctions::moveContainer (m_doc, "Menu", "tools", "edit", true);
m_doc->insertChildClient (new RKCommandEditorWindowPart (m_view, this));
+ setFocusProxy (m_view);
QHBoxLayout *pLayout = new QHBoxLayout( this, 0, -1, "layout");
pLayout->addWidget(m_view);
Modified: trunk/rkward/rkward/windows/rkhtmlwindow.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkhtmlwindow.cpp 2006-10-17 15:34:57 UTC (rev 878)
+++ trunk/rkward/rkward/windows/rkhtmlwindow.cpp 2006-10-17 16:10:19 UTC (rev 879)
@@ -45,6 +45,7 @@
khtmlpart = new KHTMLPart (this, 0, 0, 0, KHTMLPart::BrowserViewGUI);
khtmlpart->setSelectable (true);
+ setFocusProxy (khtmlpart->widget ());
khtmlpart->widget ()->setSizePolicy (QSizePolicy::Expanding, QSizePolicy::Expanding);
QHBoxLayout *pLayout = new QHBoxLayout (this, 0, -1, "layout");
Modified: trunk/rkward/rkward/windows/rkworkplaceview.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkworkplaceview.cpp 2006-10-17 15:34:57 UTC (rev 878)
+++ trunk/rkward/rkward/windows/rkworkplaceview.cpp 2006-10-17 16:10:19 UTC (rev 879)
@@ -35,6 +35,7 @@
QVBoxLayout *vbox = new QVBoxLayout (this);
tabs = new KTabBar (this);
tabs->setHoverCloseButton (true);
+ tabs->setFocusPolicy (QWidget::NoFocus);
tabs->hide ();
connect (tabs, SIGNAL (selected (int)), this, SLOT (setPage (int)));
connect (tabs, SIGNAL (closeRequest (int)), this, SLOT (closePage (int)));
@@ -149,10 +150,6 @@
widgets->raiseWidget (window);
window->setFocus ();
-/* // a slightly more convoluted version of window->setFocus, which set's the focus after the window has been shown, but unfortunately it does not work either
- QFocusEvent *focus = new QFocusEvent (QEvent::FocusIn);
- focus->setReason (QFocusEvent::Mouse);
- qApp->postEvent (window, focus); */
emit (pageChanged (window));
setCaption (window->shortCaption ());
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the rkward-tracker
mailing list