viewPan_LeftAction
= new QAction( this,
"viewPan_LeftAction" );
viewPan_Left10Action
= new QAction( this,
"viewPan_Left10Action" );
viewPan_Left100Action
= new QAction( this,
"viewPan_Left100Action" );
connect( viewPanXMapper, SIGNAL( mapped( int ) ), iview, SLOT( viewPanX(int) ) );
connect( viewPan_LeftAction, SIGNAL( triggered() ), viewPanXMapper, SLOT(map()) );
connect( viewPan_Left10Action, SIGNAL( triggered() ), viewPanXMapper, SLOT(map()) );
connect( viewPan_Left100Action, SIGNAL( triggered() ), viewPanXMapper, SLOT(map()) );
viewPanXMapper->setMapping( viewPan_LeftAction, -1 );
viewPanXMapper->setMapping( viewPan_Left10Action, -10 );
viewPanXMapper->setMapping( viewPan_Left100Action, -100 );
viewPan_LeftAction = new QAction( this, "viewPan_LeftAction" );
viewPan_Left10Action = new QAction( this, "viewPan_Left10Action" );
viewPan_Left100Action = new QAction( this, "viewPan_Left100Action" );
viewPanXMapper = new QSignalMapper( this );
connect( viewPanXMapper, SIGNAL( mapped( int ) ), iview, SLOT( viewPanX(int) ) );
connect( viewPan_LeftAction, SIGNAL( triggered() ), viewPanXMapper, SLOT(map()) );
connect( viewPan_Left10Action, SIGNAL( triggered() ), viewPanXMapper, SLOT(map()) );
connect( viewPan_Left100Action, SIGNAL( triggered() ), viewPanXMapper, SLOT(map()) );
viewPanXMapper->setMapping( viewPan_LeftAction, -1 );
viewPanXMapper->setMapping( viewPan_Left10Action, -10 );
viewPanXMapper->setMapping( viewPan_Left100Action, -100 );
To copy to clipboard, switch view to plain text mode
connect(sLeft,SIGNAL(activated()),viewPanXMapper, SLOT(map()));
viewPanXMapper->setMapping( sLeft, -1 );
QShortcut *sLeft = new QShortcut(QKeySequence(tr("Left")), this);
connect(sLeft,SIGNAL(activated()),viewPanXMapper, SLOT(map()));
viewPanXMapper->setMapping( sLeft, -1 );
To copy to clipboard, switch view to plain text mode
Bookmarks