mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-12 11:02:30 -04:00
- Fixed fill of news feed.
- Added display of feed count in main action. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6454 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
0a10092816
commit
766bd9c6ae
8 changed files with 118 additions and 11 deletions
|
@ -6,6 +6,8 @@ bool RsAutoUpdatePage::_locked = false ;
|
|||
RsAutoUpdatePage::RsAutoUpdatePage(int ms_update_period, QWidget *parent, Qt::WindowFlags flags)
|
||||
: MainPage(parent, flags)
|
||||
{
|
||||
mUpdateWhenInvisible = false;
|
||||
|
||||
_timer = new QTimer ;
|
||||
_timer->setInterval(ms_update_period);
|
||||
_timer->setSingleShot(true);
|
||||
|
@ -25,7 +27,7 @@ RsAutoUpdatePage::~RsAutoUpdatePage()
|
|||
|
||||
void RsAutoUpdatePage::securedUpdateDisplay()
|
||||
{
|
||||
if(_locked == false && isVisible()) {
|
||||
if(_locked == false && (mUpdateWhenInvisible || isVisible())) {
|
||||
updateDisplay();
|
||||
update() ; // Qt flush
|
||||
}
|
||||
|
@ -33,8 +35,8 @@ void RsAutoUpdatePage::securedUpdateDisplay()
|
|||
|
||||
void RsAutoUpdatePage::showEvent(QShowEvent */*event*/)
|
||||
{
|
||||
//std::cout << "RsAutoUpdatePage::showEvent() In show event !!" << std::endl ;
|
||||
if(!_locked)
|
||||
//std::cout << "RsAutoUpdatePage::showEvent() In show event !!" << std::endl ;
|
||||
if(!_locked && !mUpdateWhenInvisible)
|
||||
updateDisplay();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue