further code cleanup
[mdictionary] / trunk / src / base / backbone / History.cpp
index f4bd934..4693149 100644 (file)
@@ -65,7 +65,7 @@ void History::add(QString word) {
             return;
     }
 
-    //if we are not in head, we deleted everything ahed us
+    //if we are not in head, we deleted everything ahead of us
     if(currentElement > 0) {
         _history.remove(0, currentElement);
     }
@@ -96,7 +96,7 @@ void History::add(QString word) {
         _listAvailable = true;
     }
 
-    emit historyChanged(_prevAvailable,
+    Q_EMIT historyChanged(_prevAvailable,
                         _nextAvailable,
                         _listAvailable);
 }
@@ -111,7 +111,7 @@ QString History::previous() {
             _prevAvailable = false;
         }
 
-        emit historyChanged(_prevAvailable,
+        Q_EMIT historyChanged(_prevAvailable,
                             _nextAvailable,
                             _listAvailable);
 
@@ -130,7 +130,7 @@ QString History::next() {
            _nextAvailable = false;
         }
 
-        emit historyChanged(_prevAvailable,
+        Q_EMIT historyChanged(_prevAvailable,
                             _nextAvailable,
                             _listAvailable);
 
@@ -181,13 +181,13 @@ void History::setCurrentElement(int element) {
         _prevAvailable = false;
     }
 
-    emit historyChanged(_prevAvailable,
+    Q_EMIT historyChanged(_prevAvailable,
                         _nextAvailable,
                         _listAvailable);
 }
 
 void History::refreshStatus() {
-    emit historyChanged(_prevAvailable,
+    Q_EMIT historyChanged(_prevAvailable,
                         _nextAvailable,
                         _listAvailable);
 }