diff options
| author | 2008-09-25 21:12:41 +0000 | |
|---|---|---|
| committer | 2008-09-25 21:12:41 +0000 | |
| commit | c430ad5f41e7b9b2fcb4abafb82dbe10a2ed690c (patch) | |
| tree | 3ef5db76dd62c2d36c3b29b2970ce3403fab39f3 /src/modules/objects/class_dockwindow.cpp | |
| parent | removed some old references to qt3 (diff) | |
| download | KVIrc-c430ad5f41e7b9b2fcb4abafb82dbe10a2ed690c.tar.gz KVIrc-c430ad5f41e7b9b2fcb4abafb82dbe10a2ed690c.tar.bz2 KVIrc-c430ad5f41e7b9b2fcb4abafb82dbe10a2ed690c.zip | |
removed COMPILE_SET_QT4 defines
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@2572 17fca916-40b9-46aa-a4ea-0a15b648b75c
Diffstat (limited to 'src/modules/objects/class_dockwindow.cpp')
| -rw-r--r-- | src/modules/objects/class_dockwindow.cpp | 30 |
1 files changed, 0 insertions, 30 deletions
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(<widget:hobject>) Adds <widget> 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: <string> $orientation() - Returns the string "vertical" or "horizontal" depending on the orientation of this dock window. - !fn: $setOrientation(<orientation:string>) - Forces the orentation of this dock window. <ordientation> 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: <bool> $resizeEnabled() Returns $true if resizing of this window is enabled and false otherwise. !fn: $setResizeEnabled(<bEnabled:bool>) @@ -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) { |
