mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 05:22:31 -04:00
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:
parent
fb229c96da
commit
5410a20756
12 changed files with 424 additions and 91 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue