~ubuntu-branches/ubuntu/quantal/texmacs/quantal

« back to all changes in this revision

Viewing changes to src/Plugins/Qt/QTMMenuHelper.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA
  • Date: 2010-04-23 07:09:40 UTC
  • mfrom: (4.1.8 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100423070940-72mjdmdepfgrvo8f
Tags: 1:1.0.7.4-2
Re-upload, former upload failed with wrong diff.gz perhaps.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#include <QAction>
19
19
#include <QMenu>
20
20
 
21
 
#include "gui.hpp"
 
21
#include "qt_gui.hpp"
22
22
 
23
23
class QTMCommand: public QObject {
24
24
  Q_OBJECT
29
29
    cmd (_cmd) {  }
30
30
 
31
31
public slots:
32
 
  inline void apply() {
33
 
    if (!is_nil(cmd)) { cmd->apply();  needs_update(); }
 
32
  void apply() {
 
33
//    if (!is_nil(cmd)) { cmd->apply();  needs_update(); }
 
34
    if (!is_nil(cmd)) { the_gui->process_command(cmd); }
34
35
  }
35
36
};
36
37