fix signal type
This commit is contained in:
parent
7ded975cf3
commit
b6f3e6d4d6
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char rcsid[] = "@(#$Id: rclmain.cpp,v 1.7 2006-01-23 17:21:30 dockes Exp $ (C) 2005 J.F.Dockes";
|
static char rcsid[] = "@(#$Id: rclmain.cpp,v 1.8 2006-01-24 12:22:58 dockes Exp $ (C) 2005 J.F.Dockes";
|
||||||
#endif
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -322,20 +322,6 @@ void RclMain::startAdvSearch(Rcl::AdvSearchData sdata)
|
|||||||
resList->setDocSource(docsource);
|
resList->setDocSource(docsource);
|
||||||
}
|
}
|
||||||
|
|
||||||
// If a preview (toplevel) window gets closed by the user, we need to
|
|
||||||
// clean up because there is no way to reopen it. And check the case
|
|
||||||
// where the current one is closed
|
|
||||||
void RclMain::previewClosed(QWidget *w)
|
|
||||||
{
|
|
||||||
if (w == (QWidget *)curPreview) {
|
|
||||||
LOGDEB(("Active preview closed\n"));
|
|
||||||
curPreview = 0;
|
|
||||||
} else {
|
|
||||||
LOGDEB(("Old preview closed\n"));
|
|
||||||
}
|
|
||||||
delete w;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Open advanced search dialog.
|
// Open advanced search dialog.
|
||||||
void RclMain::showAdvSearchDialog()
|
void RclMain::showAdvSearchDialog()
|
||||||
{
|
{
|
||||||
@ -388,6 +374,20 @@ void RclMain::showUIPrefs()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If a preview (toplevel) window gets closed by the user, we need to
|
||||||
|
// clean up because there is no way to reopen it. And check the case
|
||||||
|
// where the current one is closed
|
||||||
|
void RclMain::previewClosed(QWidget *w)
|
||||||
|
{
|
||||||
|
if (w == (QWidget *)curPreview) {
|
||||||
|
LOGDEB(("Active preview closed\n"));
|
||||||
|
curPreview = 0;
|
||||||
|
} else {
|
||||||
|
LOGDEB(("Old preview closed\n"));
|
||||||
|
}
|
||||||
|
delete w;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open a preview window for a given document, or load it into new tab of
|
* Open a preview window for a given document, or load it into new tab of
|
||||||
* existing window.
|
* existing window.
|
||||||
@ -424,8 +424,8 @@ void RclMain::startPreview(int docnum)
|
|||||||
}
|
}
|
||||||
|
|
||||||
curPreview->setCaption(QString::fromUtf8(currentQueryData.description.c_str()));
|
curPreview->setCaption(QString::fromUtf8(currentQueryData.description.c_str()));
|
||||||
connect(curPreview, SIGNAL(previewClosed(Widget *)),
|
connect(curPreview, SIGNAL(previewClosed(QWidget *)),
|
||||||
this, SLOT(previewClosed(Widget *)));
|
this, SLOT(previewClosed(QWidget *)));
|
||||||
curPreview->show();
|
curPreview->show();
|
||||||
} else {
|
} else {
|
||||||
if (curPreview->makeDocCurrent(fn, doc)) {
|
if (curPreview->makeDocCurrent(fn, doc)) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user