diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2008-07-26 21:15:33 +0000 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2008-07-26 21:15:33 +0000 |
| commit | 227d31690824c44d4e92dc4fed07a8c43ea8cfb9 (patch) | |
| tree | d670b44e51da56d0f232e99a4270648b51164640 /pokemodr/ScriptWidget.cpp | |
| parent | e260085a116271e49c3d1d835eac1df70424f4c6 (diff) | |
| download | sigen-227d31690824c44d4e92dc4fed07a8c43ea8cfb9.tar.gz sigen-227d31690824c44d4e92dc4fed07a8c43ea8cfb9.tar.xz sigen-227d31690824c44d4e92dc4fed07a8c43ea8cfb9.zip | |
[FIX] Fixed an infinite loop in Fraction::reduce
[FIX] FractionWidget's behavior is now an enum
[FIX] Fixed up some stuff in KAboutData for pokemodr
[FIX] ScriptWidget value is set at construction now
[DEL] Removed Pokemodr.h (nothing useful)
git-svn-id: https://pokegen.svn.sourceforge.net/svnroot/pokegen/trunk@230 6ecfd1a5-f3ed-3746-8530-beee90d26b22
Diffstat (limited to 'pokemodr/ScriptWidget.cpp')
| -rw-r--r-- | pokemodr/ScriptWidget.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pokemodr/ScriptWidget.cpp b/pokemodr/ScriptWidget.cpp index b6d5753a..456f5249 100644 --- a/pokemodr/ScriptWidget.cpp +++ b/pokemodr/ScriptWidget.cpp @@ -29,6 +29,7 @@ Pokemodr::ScriptWidget::ScriptWidget(QWidget* parent, const Pokemod::Script& value) : QWidget(parent), + m_value(value), m_document(NULL) { setupUi(this); @@ -59,13 +60,14 @@ Pokemodr::ScriptWidget::ScriptWidget(QWidget* parent, const Pokemod::Script& val m_view->action(KStandardAction::name(KStandardAction::Cut))->setShortcuts(QKeySequence::UnknownKey); m_view->action(KStandardAction::name(KStandardAction::Copy))->setShortcuts(QKeySequence::UnknownKey); m_view->action(KStandardAction::name(KStandardAction::PasteText))->setShortcuts(QKeySequence::UnknownKey); - // FIXME: Needs KDE4 4.0.98 or higher (maybe less, but 98 should be enough) + // FIXME: Uncomment to get copy/paste to work in KatePart (KDE 4.1) // QList<KActionCollection*> collections = KActionCollection::allCollections(); // foreach (KActionCollection* collection, collections) // { // // FIXME: Nothing else should have a Preferences action right? // if (collection->action(KStandardAction::name(KStandardAction::Preferences))) // { +// // TODO: Works like crap since it doesnt check to see if the widget is focused // connect(collection->action(KStandardAction::name(KStandardAction::Cut)), SIGNAL(triggered()), m_view->action(KStandardAction::name(KStandardAction::Cut)), SIGNAL(triggered())); // connect(collection->action(KStandardAction::name(KStandardAction::Copy)), SIGNAL(triggered()), m_view->action(KStandardAction::name(KStandardAction::Copy)), SIGNAL(triggered())); // connect(collection->action(KStandardAction::name(KStandardAction::PasteText)), SIGNAL(triggered()), m_view->action(KStandardAction::name(KStandardAction::PasteText)), SIGNAL(triggered())); |
