dblclick to edit in viewAction

This commit is contained in:
dockes 2006-12-18 12:05:29 +00:00
parent 8f1f2ca66d
commit 0e531b73a7
4 changed files with 13 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#ifndef lint
static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.15 2006-12-16 15:39:54 dockes Exp $ (C) 2005 J.F.Dockes";
static char rcsid[] = "@(#$Id: rclmain_w.cpp,v 1.16 2006-12-18 12:05:29 dockes Exp $ (C) 2005 J.F.Dockes";
#endif
/*
* This program is free software; you can redistribute it and/or modify
@ -249,6 +249,11 @@ static const char *eventTypeToStr(int tp)
}
#endif
void RclMain::closeEvent( QCloseEvent * )
{
fileExit();
}
// We also want to get rid of the advanced search form and previews
// when we exit (not our children so that it's not systematically
// created over the main form).

View File

@ -93,6 +93,8 @@ public slots:
virtual void previewPrevInTab(int sid, int docnum);
virtual void previewExposed(int sid, int docnum);
virtual void resetSearch();
protected:
virtual void closeEvent( QCloseEvent * );
private:
Preview *curPreview;

View File

@ -1,5 +1,5 @@
#ifndef lint
static char rcsid[] = "@(#$Id: viewaction_w.cpp,v 1.1 2006-12-14 13:53:43 dockes Exp $ (C) 2006 J.F.Dockes";
static char rcsid[] = "@(#$Id: viewaction_w.cpp,v 1.2 2006-12-18 12:05:29 dockes Exp $ (C) 2006 J.F.Dockes";
#endif
/*
* This program is free software; you can redistribute it and/or modify
@ -42,6 +42,8 @@ void ViewAction::init()
{
connect(closePB, SIGNAL(clicked()), this, SLOT(close()));
connect(chgActPB, SIGNAL(clicked()), this, SLOT(editAction()));
connect(actionsLV,SIGNAL(doubleClicked(QListViewItem *,const QPoint &,int)),
this, SLOT(editAction()));
fillLists();
actionsLV->setColumnWidth(0, 150);
actionsLV->setColumnWidth(1, 150);

View File

@ -1,6 +1,6 @@
#ifndef _VIEWACTION_W_H_INCLUDED_
#define _VIEWACTION_W_H_INCLUDED_
/* @(#$Id: viewaction_w.h,v 1.1 2006-12-14 13:53:43 dockes Exp $ (C) 2006 J.F.Dockes */
/* @(#$Id: viewaction_w.h,v 1.2 2006-12-18 12:05:29 dockes Exp $ (C) 2006 J.F.Dockes */
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -28,6 +28,7 @@
#endif
class QDialog;
class QMouseEvent;
//MOC_SKIP_BEGIN
#if QT_VERSION < 0x040000