* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
- * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. *
***************************************************************************/
#include "chatlinemodel.h"
***************************************************************************/
#include "chatlinemodel.h"
: MessageModel(parent)
{
qRegisterMetaType<WrapList>("ChatLineModel::WrapList");
qRegisterMetaTypeStreamOperators<WrapList>("ChatLineModel::WrapList");
: MessageModel(parent)
{
qRegisterMetaType<WrapList>("ChatLineModel::WrapList");
qRegisterMetaTypeStreamOperators<WrapList>("ChatLineModel::WrapList");
- connect(QtUi::style(), SIGNAL(changed()), SLOT(styleChanged()));
+ connect(QtUi::style(), &UiStyle::changed, this, &ChatLineModel::styleChanged);
// MessageModelItem *ChatLineModel::createMessageModelItem(const Message &msg) {
// return new ChatLineModelItem(msg);
// }
// MessageModelItem *ChatLineModel::createMessageModelItem(const Message &msg) {
// return new ChatLineModelItem(msg);
// }
{
for (int i = 0; i < messages.count(); i++) {
_messageList.insert(pos, ChatLineModelItem(messages[i]));
{
for (int i = 0; i < messages.count(); i++) {
_messageList.insert(pos, ChatLineModelItem(messages[i]));
- emit dataChanged(index(0, 0), index(rowCount()-1, columnCount()-1));
+ emit dataChanged(index(0, 0), index(rowCount() - 1, columnCount() - 1));