summaryrefslogtreecommitdiff
path: root/libopie2/opieui/big-screen/omodalhelper.h
Unidiff
Diffstat (limited to 'libopie2/opieui/big-screen/omodalhelper.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opieui/big-screen/omodalhelper.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opieui/big-screen/omodalhelper.h b/libopie2/opieui/big-screen/omodalhelper.h
index 096cec4..ed6fee3 100644
--- a/libopie2/opieui/big-screen/omodalhelper.h
+++ b/libopie2/opieui/big-screen/omodalhelper.h
@@ -223,33 +223,33 @@ template<class Dialog, class Record, typename Id>
223OModalHelper<Dialog, Record, Id>::OModalHelper( enum Mode mode, QObject* parent ) 223OModalHelper<Dialog, Record, Id>::OModalHelper( enum Mode mode, QObject* parent )
224{ 224{
225 m_disabled = false; 225 m_disabled = false;
226 m_mode = mode; 226 m_mode = mode;
227 m_signal = new OModalHelperSignal( this, parent ); 227 m_signal = new OModalHelperSignal( this, parent );
228 m_controler = new OModalHelperControler( this, m_signal ); 228 m_controler = new OModalHelperControler( this, m_signal );
229} 229}
230 230
231 231
232/** 232/**
233 * This functions looks for your record and sees if it is 233 * This functions looks for your record and sees if it is
234 * handled with this helper. Note that done records 234 * handled with this helper. Note that done records
235 * will not be returned. 235 * will not be returned.
236 * 236 *
237 * @return true if the record is currenlty edited otherwise false 237 * @return true if the record is currenlty edited otherwise false
238 * 238 *
239 * @param Id The id which might be handled 239 * @param id The id which might be handled
240 */ 240 */
241template<class Dialog, class Record, typename Id> 241template<class Dialog, class Record, typename Id>
242bool OModalHelper<Dialog, Record, Id>::handles( Id id )const 242bool OModalHelper<Dialog, Record, Id>::handles( Id id )const
243{ 243{
244 if ( m_transactions.isEmpty() ) 244 if ( m_transactions.isEmpty() )
245 return false; 245 return false;
246 246
247 TransactionMap::ConstIterator it = m_transactions.begin(); 247 TransactionMap::ConstIterator it = m_transactions.begin();
248 for ( ; it != m_transactions.end(); ++it ) 248 for ( ; it != m_transactions.end(); ++it )
249 if ( it.data() == id ) 249 if ( it.data() == id )
250 return true; 250 return true;
251 251
252 return false; 252 return false;
253} 253}
254 254
255 255