Update notifications for Links Cloud and Photo Show.

Improvements to the Photo system.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@382 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-03-17 14:03:47 +00:00
parent fb229c96da
commit 5410a20756
12 changed files with 424 additions and 91 deletions

View file

@ -44,7 +44,7 @@
#include <QPixmap>
#include <QMessageBox>
#include <QHeaderView>
#include <QTimer>
/* Images for context menu icons */
#define IMAGE_REMOVEFRIEND ":/images/removefriend16.png"
@ -100,10 +100,34 @@ LinksDialog::LinksDialog(QWidget *parent)
_header->resizeSection ( 1, 50 );
_header->resizeSection ( 2, 150 );
/* Set a GUI update timer - much cleaner than
* doing everything through the notify agent
*/
QTimer *timer = new QTimer(this);
timer->connect(timer, SIGNAL(timeout()), this, SLOT(checkUpdate()));
timer->start(1000);
/* Hide platform specific features */
#ifdef Q_WS_WIN
#endif
}
void LinksDialog::checkUpdate()
{
/* update */
if (!rsRanks)
return;
if (rsRanks->updated())
{
updateLinks();
}
return;
}
void LinksDialog::linkTreeWidgetCostumPopupMenu( QPoint point )