mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-10 17:59:32 -04:00
Merge pull request #2757 from csoler/v0.6-BugFixing_30
bug fixing in UI
This commit is contained in:
commit
4867d396fe
retroshare-gui/src/gui
@ -259,10 +259,10 @@ void ElidedLabel::mousePressEvent(QMouseEvent *ev)
|
||||
}
|
||||
QLabel::mousePressEvent(ev);
|
||||
|
||||
if(ev->buttons()==Qt::RightButton)
|
||||
emit rightClicked(ev->pos());
|
||||
else
|
||||
if(ev->buttons()==Qt::LeftButton)
|
||||
emit clicked(ev->pos());
|
||||
else if(ev->buttons()==Qt::RightButton)
|
||||
emit rightClicked(ev->pos());
|
||||
}
|
||||
|
||||
void ElidedLabel::setTextColor(const QColor &color)
|
||||
|
@ -1176,10 +1176,10 @@ void GxsGroupFrameDialog::updateGroupStatisticsReal(const RsGxsGroupId &groupId)
|
||||
*/
|
||||
|
||||
QTreeWidgetItem *item = ui->groupTreeWidget->getItemFromId(QString::fromStdString(stats.mGrpId.toStdString()));
|
||||
if (!item)
|
||||
return;
|
||||
|
||||
ui->groupTreeWidget->setUnreadCount(item, mCountChildMsgs ? (stats.mNumThreadMsgsUnread + stats.mNumChildMsgsUnread) : stats.mNumThreadMsgsUnread);
|
||||
if (item)
|
||||
ui->groupTreeWidget->setUnreadCount(item, mCountChildMsgs ? (stats.mNumThreadMsgsUnread + stats.mNumChildMsgsUnread) : stats.mNumThreadMsgsUnread);
|
||||
|
||||
mCachedGroupStats[groupId] = stats;
|
||||
|
||||
getUserNotify()->updateIcon();
|
||||
|
@ -46,7 +46,6 @@ protected:
|
||||
bool mCountChildMsgs; // Count new child messages?
|
||||
|
||||
private:
|
||||
RsGxsUpdateBroadcastBase *mBase;
|
||||
const GxsGroupFrameDialog *mGroupFrameDialog;
|
||||
|
||||
unsigned int mNewThreadMessageCount;
|
||||
|
@ -39,9 +39,9 @@ void Histogram::draw(QPainter */*painter*/) const
|
||||
|
||||
void Histogram::insert(double val)
|
||||
{
|
||||
long int bin = (uint32_t)floor((val - mStart)/(mEnd - mStart) * mBins.size());
|
||||
long int bin = (long int)floor((val - mStart)/(mEnd - mStart) * mBins.size());
|
||||
|
||||
if(bin >= 0 && bin < mBins.size())
|
||||
if(bin >= 0 && bin < (long int)mBins.size())
|
||||
++mBins[bin];
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@
|
||||
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
#include <stdint.h>
|
||||
#include <cstdint>
|
||||
|
||||
class QPainter;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user