Summary: | Change splitter orientiation on the fly | ||
---|---|---|---|
Product: | [Applications] kate | Reporter: | Eike Hein <hein> |
Component: | general | Assignee: | KWrite Developers <kwrite-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/kate/8bd9d27f09612069997a55df05459baa592bb436 | Version Fixed In: |
Description
Eike Hein
2005-11-21 20:58:42 UTC
Err, "keyboard shortcuts", of course. As far as I can remember: Wasn't there somebody with a patch for this already? mwoehlke, was it you? No, it was me. It's likely bitrotted quite a bit, though; I'll look into it some time. Code: kdesdk/kate/app/kateviewmanager.cpp - add entries in the .xml file - create actions in the ::setupActions function - add a function, example: void simpleRotate() { KateViewSpace *vs = activeViewSpace(); QSplitter *currentSplitter = qobject_cast<QSplitter*>(vs->parentWidget()); if (currentSplitter.count() == 1) return; // root, nothing to switch if (currentSplitter.orientatoin() == Qt::Horizontal) currentSplitter.setOrientation(Qt::Vertical); else currentSplitter.setOrientation(Qt::Horizontal); } This would be rotate clockwise :) Counterclockwise needs a bit more work. Git commit 8bd9d27f09612069997a55df05459baa592bb436 by Christoph Cullmann. Committed on 11/09/2014 at 15:30. Pushed by cullmann into branch 'master'. implement toggle of orientation of current splitter M +2 -1 kate/data/kateui.rc M +32 -0 kate/src/kateviewmanager.cpp M +6 -0 kate/src/kateviewmanager.h http://commits.kde.org/kate/8bd9d27f09612069997a55df05459baa592bb436 |