defuze.me
Client
|
00001 /************************************************************************** 00002 ** defuze.me Epitech Innovative Project 00003 ** 00004 ** Copyright 2010-2011 00005 ** Athena Calmettes - Jocelyn De La Rosa - Francois Gaillard 00006 ** Adrien Jarthon - Alexandre Moore - Luc Peres - Arnaud Sellier 00007 ** 00008 ** All rights reserved. 00009 **************************************************************************/ 00010 00011 #include "statuswidget.hpp" 00012 00013 using namespace Notification; 00014 00015 StatusWidget::StatusWidget(Status *plugin) : plugin(plugin) 00016 { 00017 setupUi(this); 00018 } 00019 00020 void StatusWidget::addMessage(Message* widget) 00021 { 00022 static_cast<QVBoxLayout*>(scrollArea->layout())->insertWidget(0, widget); 00023 } 00024 00025 void StatusWidget::changeEvent(QEvent *e) 00026 { 00027 QWidget::changeEvent(e); 00028 switch (e->type()) { 00029 case QEvent::LanguageChange: 00030 retranslateUi(this); 00031 break; 00032 default: 00033 break; 00034 } 00035 }