mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-18 10:57:18 -05:00
added a forgotten time(NULL) in notifyqt.cpp
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1061 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
14dc2fbf7e
commit
56b3370cd1
@ -1,5 +1,5 @@
|
||||
CONFIG += qt gui uic qrc uitools
|
||||
QT += network xml script
|
||||
CONFIG += qt gui uic qrc resources uitools
|
||||
QT += network xml script
|
||||
TEMPLATE = app
|
||||
TARGET = RetroShare
|
||||
|
||||
@ -16,6 +16,7 @@ linux-g++ {
|
||||
LIBS += ../../../../lib/linux-g++/libminiupnpc.a
|
||||
LIBS += ../../../../lib/linux-g++/libssl.a
|
||||
LIBS += ../../../../lib/linux-g++/libcrypto.a
|
||||
LIBS += -lQtUiTools
|
||||
LIBS += -lz
|
||||
}
|
||||
linux-g++-64 {
|
||||
@ -39,9 +40,12 @@ win32-x-g++ {
|
||||
LIBS += ../../../../lib/win32-x-g++/libminiupnpc.a
|
||||
LIBS += ../../../../lib/win32-x-g++/libz.a
|
||||
LIBS += -L${HOME}/.wine/drive_c/pthreads/lib -lpthreadGCE2
|
||||
LIBS += -lQtUiTools
|
||||
LIBS += -lws2_32 -luuid -lole32 -liphlpapi -lcrypt32 -gdi32
|
||||
LIBS += -lole32 -lwinmm
|
||||
|
||||
DEFINES *= WIN32
|
||||
|
||||
RC_FILE = gui/images/retroshare_win.rc
|
||||
}
|
||||
|
||||
|
@ -54,6 +54,7 @@
|
||||
#define SETTING_NEWSFEED_FLAGS "NewsFeedFlags"
|
||||
#define SETTING_CHAT_FLAGS "ChatFlags"
|
||||
#define SETTING_NOTIFY_FLAGS "NotifyFlags"
|
||||
#define SETTING_CHAT_AVATAR "ChatAvatar"
|
||||
|
||||
/* Default Retroshare Settings */
|
||||
#define DEFAULT_OPACITY 100
|
||||
@ -114,6 +115,15 @@ RshareSettings::RshareSettings()
|
||||
|
||||
}
|
||||
|
||||
/** Gets/sets the currently saved chat avatar. */
|
||||
QImage RshareSettings::getChatAvatar() const
|
||||
{
|
||||
return value(SETTING_CHAT_AVATAR).value<QImage>();
|
||||
}
|
||||
void RshareSettings::setChatAvatar(const QImage& I)
|
||||
{
|
||||
setValue(SETTING_CHAT_AVATAR,I) ;
|
||||
}
|
||||
|
||||
/** Gets the currently preferred language code for Rshare. */
|
||||
QString RshareSettings::getLanguageCode()
|
||||
|
@ -1,7 +1,7 @@
|
||||
/****************************************************************
|
||||
* This file is distributed under the following license:
|
||||
*
|
||||
* Copyright (c) 2006-2007, crypton
|
||||
* This file is distributed under the following license:
|
||||
*
|
||||
* Copyright (c) 2006-2007, crypton
|
||||
* Copyright (c) 2006, Matt Edman, Justin Hipple
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
@ -75,8 +75,15 @@ public:
|
||||
|
||||
/** Returns true if RetroShare should start on system boot. */
|
||||
bool runRetroshareOnBoot();
|
||||
|
||||
/** Set whether to run RetroShare on system boot. */
|
||||
void setRunRetroshareOnBoot(bool run);
|
||||
void setRunRetroshareOnBoot(bool run);
|
||||
|
||||
/** Returns the chat avatar. Returns a null image if no avatar is saved. */
|
||||
QImage getChatAvatar() const ;
|
||||
|
||||
/** set the chat avatar. Returns a null image if no avatar is saved. */
|
||||
void setChatAvatar(const QImage&) ;
|
||||
|
||||
|
||||
/* Get the destination log file. */
|
||||
|
@ -86,7 +86,7 @@ PopupChatDialog::PopupChatDialog(std::string id, std::string name,
|
||||
|
||||
// Create the status bar
|
||||
std::ostringstream statusstr;
|
||||
statusstr << "Chatting with: " << dialogName << " !!! " << id;
|
||||
statusstr << "Chatting with " << dialogName << " (" << id << ")" ;
|
||||
statusBar()->showMessage(QString::fromStdString(statusstr.str()));
|
||||
ui.textBrowser->setOpenExternalLinks ( false );
|
||||
|
||||
@ -606,6 +606,7 @@ void PopupChatDialog::updateAvatar()
|
||||
void PopupChatDialog::getAvatar()
|
||||
{
|
||||
QString fileName = QFileDialog::getOpenFileName(this, "Load File", QDir::homePath(), "Pictures (*.png *.xpm *.jpg)");
|
||||
|
||||
if(!fileName.isEmpty())
|
||||
{
|
||||
picture = QPixmap(fileName).scaled(82,82, Qt::IgnoreAspectRatio);
|
||||
|
@ -144,6 +144,8 @@ void NotifyQt::UpdateGUI()
|
||||
displayChannels();
|
||||
}
|
||||
|
||||
lastTs = time(NULL) ;
|
||||
|
||||
static bool already_updated = false ; // these only update once at start because they may already have been set before
|
||||
// the gui is running, then they get updated by callbacks.
|
||||
if(!already_updated)
|
||||
|
Loading…
Reference in New Issue
Block a user