mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
remove a couple of debug statements
This commit is contained in:
parent
b78737632e
commit
19e0ef4641
|
@ -30,7 +30,7 @@ static QTextStream logFile;
|
||||||
void myMessageHandler(QtMsgType type, const QMessageLogContext& ctxt, const QString& msg)
|
void myMessageHandler(QtMsgType type, const QMessageLogContext& ctxt, const QString& msg)
|
||||||
{
|
{
|
||||||
dflt(type, ctxt, msg);
|
dflt(type, ctxt, msg);
|
||||||
logFile << QTime::currentTime().toString("HH:mm:ss' '") << msg << '\n';
|
logFile << QTime::currentTime().toString("HH:mm:ss' '") << msg << '\n';
|
||||||
logFile.flush();
|
logFile.flush();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
@ -47,7 +47,7 @@ int main(int argc, char *argv[])
|
||||||
logfile.open(QIODevice::Append);
|
logfile.open(QIODevice::Append);
|
||||||
logFile.setDevice(&logfile);
|
logFile.setDevice(&logfile);
|
||||||
|
|
||||||
logFile << QDateTime::currentDateTime().toString("yyyy-dd-MM HH:mm:ss' file logger starting\n'");
|
logFile << QDateTime::currentDateTime().toString("yyyy-dd-MM HH:mm:ss' file logger starting\n'");
|
||||||
qInstallMessageHandler(myMessageHandler);
|
qInstallMessageHandler(myMessageHandler);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -593,7 +593,7 @@ void Widget::setStatusMessage(const QString &statusMessage)
|
||||||
|
|
||||||
void Widget::addFriend(int friendId, const QString &userId)
|
void Widget::addFriend(int friendId, const QString &userId)
|
||||||
{
|
{
|
||||||
qDebug() << "Widget: Adding friend with id" << userId;
|
//qDebug() << "Widget: Adding friend with id" << userId;
|
||||||
Friend* newfriend = FriendList::addFriend(friendId, userId);
|
Friend* newfriend = FriendList::addFriend(friendId, userId);
|
||||||
QLayout* layout = contactListWidget->getFriendLayout(Status::Offline);
|
QLayout* layout = contactListWidget->getFriendLayout(Status::Offline);
|
||||||
layout->addWidget(newfriend->widget);
|
layout->addWidget(newfriend->widget);
|
||||||
|
@ -632,7 +632,7 @@ void Widget::addFriend(int friendId, const QString &userId)
|
||||||
QPixmap avatar = Settings::getInstance().getSavedAvatar(userId);
|
QPixmap avatar = Settings::getInstance().getSavedAvatar(userId);
|
||||||
if (!avatar.isNull())
|
if (!avatar.isNull())
|
||||||
{
|
{
|
||||||
qWarning() << "Widget: loadded avatar for id" << userId;
|
//qWarning() << "Widget: loadded avatar for id" << userId;
|
||||||
newfriend->chatForm->onAvatarChange(friendId, avatar);
|
newfriend->chatForm->onAvatarChange(friendId, avatar);
|
||||||
newfriend->widget->onAvatarChange(friendId, avatar);
|
newfriend->widget->onAvatarChange(friendId, avatar);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user