[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: playground/utils/charm/trunk/Charm
From: Till Adam <adam () kde ! org>
Date: 2008-12-18 8:36:06
Message-ID: 1229589366.179612.15458.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 898452 by tilladam:
Move the "save the last end time" into accept(), so it doesn't happen on cancel.
M +5 -1 EventEditor.cpp
M +3 -0 EventEditor.h
--- trunk/playground/utils/charm/trunk/Charm/EventEditor.cpp #898451:898452
@@ -81,9 +81,13 @@
EventEditor::~EventEditor()
{
+ delete m_ui; m_ui = 0;
+}
+
+void EventEditor::accept()
+{
QSettings settings;
settings.setValue( MetaKey_LastEventEditorDateTime, m_event.endDateTime() );
- delete m_ui; m_ui = 0;
}
Event EventEditor::event() const
--- trunk/playground/utils/charm/trunk/Charm/EventEditor.h #898451:898452
@@ -27,6 +27,9 @@
// return the result after the dialgo has been accepted
Event event() const;
+protected Q_SLOTS:
+ void accept();
+
private Q_SLOTS:
void durationHoursEdited( int );
void durationMinutesEdited( int );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic