From c430ad5f41e7b9b2fcb4abafb82dbe10a2ed690c Mon Sep 17 00:00:00 2001 From: Fabio Bas Date: Thu, 25 Sep 2008 21:12:41 +0000 Subject: removed COMPILE_SET_QT4 defines git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2572 17fca916-40b9-46aa-a4ea-0a15b648b75c --- src/modules/objects/class_dockwindow.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) (limited to 'src/modules/objects/class_dockwindow.cpp') diff --git a/src/modules/objects/class_dockwindow.cpp b/src/modules/objects/class_dockwindow.cpp index f3f375be8..44768bb47 100644 --- a/src/modules/objects/class_dockwindow.cpp +++ b/src/modules/objects/class_dockwindow.cpp @@ -45,17 +45,10 @@ [class]widget[/class] @description: A window dockable to the KVIrc main frame borders (like a toolbar). - The window has an implicit layout that will automatically manage - the children depending on the dock window's orientation. @functions: !fn: $addWidget() Adds to the internal layout of this dock window.[br] The widget must be a child of this dock window (otherwise strange things may happen). - !fn: $orientation() - Returns the string "vertical" or "horizontal" depending on the orientation of this dock window. - !fn: $setOrientation() - Forces the orentation of this dock window. must be either "horizontal" or "vertical".[br] - Please note that KVIrc sets the orientation automatically when it is moved between the main frame docks by the user. !fn: $resizeEnabled() Returns $true if resizing of this window is enabled and false otherwise. !fn: $setResizeEnabled() @@ -72,8 +65,6 @@ KVSO_BEGIN_REGISTERCLASS(KviKvsObject_dockwindow,"dockwindow","widget") KVSO_REGISTER_HANDLER(KviKvsObject_dockwindow,"addWidget",function_addWidget) - KVSO_REGISTER_HANDLER(KviKvsObject_dockwindow,"orientation",function_orientation) - KVSO_REGISTER_HANDLER(KviKvsObject_dockwindow,"setOrientation",function_setOrientation) KVSO_REGISTER_HANDLER(KviKvsObject_dockwindow,"resizeEnabled",function_resizeEnabled) KVSO_REGISTER_HANDLER(KviKvsObject_dockwindow,"setResizeEnabled",function_setResizeEnabled) KVSO_REGISTER_HANDLER(KviKvsObject_dockwindow,"setAllowedDockAreas",function_setAllowedDockAreas) @@ -141,27 +132,6 @@ bool KviKvsObject_dockwindow::function_addWidget(KviKvsObjectFunctionCall *c) _pDockWindow->setWidget((QWidget *)(pWidget->object())); return true; } - -bool KviKvsObject_dockwindow::function_orientation(KviKvsObjectFunctionCall * c) -{ - if(!widget())return true; // hum ? dead ? - c->returnValue()->setString(QString("horizontal")); - return true; -} - -bool KviKvsObject_dockwindow::function_setOrientation(KviKvsObjectFunctionCall * c) -{ - QString szOrientation; - KVSO_PARAMETERS_BEGIN(c) - KVSO_PARAMETER("orientation",KVS_PT_NONEMPTYSTRING,0,szOrientation) - KVSO_PARAMETERS_END(c) - - if(!widget())return true; // hum ? dead ? -#ifndef COMPILE_USE_QT4 - _pDockWindow->setOrientation(KviQString::equalCI(szOrientation,"vertical") ? Qt::Vertical : Qt::Horizontal); -#endif //!COMPILE_USE_QT4 - return true; -} // Fix me bool KviKvsObject_dockwindow::function_resizeEnabled(KviKvsObjectFunctionCall * c) { -- cgit v1.3.1-10-gc9f91