<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -265,8 +265,7 @@ void soundPlay(const QString &amp;s)
 #else
 	QString player = PsiOptions::instance()-&gt;getOption(&quot;options.ui.notifications.sounds.unix-sound-player&quot;).toString();
 	if (player == &quot;&quot;) player = soundDetectPlayer();
-	QStringList args;
-	args = QStringList::split(' ', player);
+	QStringList args = player.split(' ');
 	args += str;
 	QString prog = args.takeFirst();
 	QProcess::startDetached(prog, args);
@@ -362,7 +361,8 @@ void x11wmClass(Display *dsp, WId wid, QString resName)
 	//Display *dsp = x11Display();                 // get the display
 	//WId win = winId();                           // get the window
 	XClassHint classhint;                          // class hints
-	classhint.res_name = (char *)resName.latin1(); // res_name
+	const QByteArray latinResName = resName.toLatin1();
+	classhint.res_name = (char *)latinResName.data(); // res_name
 	classhint.res_class = app_name;                // res_class
 	XSetClassHint(dsp, wid, &amp;classhint);           // set the class hints
 }</diff>
      <filename>src/common.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -698,7 +698,7 @@ void EventDlg::init()
 	vb1-&gt;setSpacing(4);
 
 	// first row
-	QHBoxLayout *hb1 = new QHBoxLayout(0);
+	QHBoxLayout *hb1 = new QHBoxLayout;
 	hb1-&gt;setSpacing(4);
 	vb1-&gt;addLayout(hb1);
 	d-&gt;lb_identity = new QLabel(tr(&quot;Identity:&quot;), this);
@@ -724,7 +724,7 @@ void EventDlg::init()
 	updateIdentityVisibility();
 
 	// second row
-	QHBoxLayout *hb2 = new QHBoxLayout(0);
+	QHBoxLayout *hb2 = new QHBoxLayout;
 	hb2-&gt;setSpacing(4);
 	vb1-&gt;addLayout(hb2);
 
@@ -821,7 +821,7 @@ void EventDlg::init()
 		if (toolButton)
 			toolButton-&gt;setFocusPolicy(Qt::NoFocus);
 
-	QHBoxLayout *hb3 = new QHBoxLayout(0);
+	QHBoxLayout *hb3 = new QHBoxLayout;
 	hb3-&gt;setSpacing(4);
 	vb1-&gt;addLayout(hb3);
 
@@ -913,7 +913,7 @@ void EventDlg::init()
 	d-&gt;xdata_form-&gt;hide();
 
 	// bottom row
-	QHBoxLayout *hb4 = new QHBoxLayout(0);
+	QHBoxLayout *hb4 = new QHBoxLayout;
 	vb1-&gt;addLayout(hb4);
 	d-&gt;pb_close = new IconButton(this);
 	d-&gt;pb_close-&gt;setText(tr(&quot;&amp;Close&quot;));</diff>
      <filename>src/eventdlg.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -92,7 +92,7 @@ static void active_file_remove(const QString &amp;s)
 {
 	if(!activeFiles)
 		return;
-	activeFiles-&gt;remove(s);
+	activeFiles-&gt;removeAll(s);
 	//printf(&quot;removed: [%s]\n&quot;, s.latin1());
 }
 
@@ -343,7 +343,7 @@ void FileTransferHandler::ft_connected()
 				ok = true;
 			}
 			else {
-				if(d-&gt;f.at(d-&gt;offset))
+				if(d-&gt;f.seek(d-&gt;offset))
 					ok = true;
 			}
 		}
@@ -370,7 +370,7 @@ void FileTransferHandler::ft_connected()
 				ok = true;
 			}
 			else {
-				if(d-&gt;f.at(d-&gt;offset))
+				if(d-&gt;f.seek(d-&gt;offset))
 					ok = true;
 			}
 		}
@@ -381,7 +381,7 @@ void FileTransferHandler::ft_connected()
 			return;
 		}
 
-		d-&gt;activeFile = d-&gt;f.name();
+		d-&gt;activeFile = d-&gt;f.fileName();
 		active_file_add(d-&gt;activeFile);
 
 		// done already?  this means a file size of zero
@@ -396,7 +396,7 @@ void FileTransferHandler::ft_readyRead(const QByteArray &amp;a)
 {
 	if(!d-&gt;sending) {
 		//printf(&quot;%d bytes read\n&quot;, a.size());
-		int r = d-&gt;f.writeBlock(a.data(), a.size());
+		int r = d-&gt;f.write(a.data(), a.size());
 		if(r &lt; 0) {
 			d-&gt;f.close();
 			delete d-&gt;ft;
@@ -560,7 +560,7 @@ FileRequestDlg::FileRequestDlg(const Jid &amp;jid, PsiCon *psi, PsiAccount *pa, cons
 
 	d-&gt;te = new ChatView(this);
 	d-&gt;te-&gt;setReadOnly(false);
-	d-&gt;te-&gt;setTextFormat(Qt::PlainText);
+	d-&gt;te-&gt;setAcceptRichText(false);
 	replaceWidget(te_desc, d-&gt;te);
 	setTabOrder(le_fname, d-&gt;te);
 	setTabOrder(d-&gt;te, pb_stop);
@@ -603,7 +603,7 @@ FileRequestDlg::FileRequestDlg(const Jid &amp;jid, PsiCon *psi, PsiAccount *pa, cons
 			return;
 		}
 
-		FileUtil::setLastUsedSavePath(fi.dirPath());
+		FileUtil::setLastUsedSavePath(fi.path());
 		le_fname-&gt;setText(QDir::convertSeparators(fi.filePath()));
 		lb_size-&gt;setText(tr(&quot;%1 byte(s)&quot;).arg(fi.size())); // TODO: large file support
 	}
@@ -645,7 +645,7 @@ FileRequestDlg::FileRequestDlg(const QDateTime &amp;ts, FileTransfer *ft, PsiAccount
 	replaceWidget(lb_accountlabel, hb);
 
 	d-&gt;te = new ChatView(this);
-	d-&gt;te-&gt;setTextFormat(Qt::PlainText);
+	d-&gt;te-&gt;setAcceptRichText(false);
 	replaceWidget(te_desc, d-&gt;te);
 	setTabOrder(le_fname, d-&gt;te);
 	setTabOrder(d-&gt;te, pb_stop);
@@ -813,7 +813,7 @@ void FileRequestDlg::doStart()
 		connect(d-&gt;ft, SIGNAL(statusMessage(const QString &amp;)), SLOT(ft_statusMessage(const QString &amp;)));
 		connect(d-&gt;ft, SIGNAL(connected()), SLOT(ft_connected()));
 		connect(d-&gt;ft, SIGNAL(error(int, int, const QString &amp;)), SLOT(ft_error(int, int, const QString &amp;)));
-		d-&gt;ft-&gt;send(le_to-&gt;text(), le_fname-&gt;text(), d-&gt;te-&gt;text());
+		d-&gt;ft-&gt;send(le_to-&gt;text(), le_fname-&gt;text(), d-&gt;te-&gt;getPlainText());
 	}
 	else {
 		QString fname, savename;
@@ -850,7 +850,8 @@ void FileRequestDlg::doStart()
 		busy-&gt;start();
 		lb_status-&gt;setText(tr(&quot;Accepting...&quot;));
 
-		d-&gt;t.start(30000, true);
+		d-&gt;t.setSingleShot(true);
+		d-&gt;t.start(30000);
 
 		connect(d-&gt;ft, SIGNAL(accepted()), SLOT(ft_accepted()));
 		connect(d-&gt;ft, SIGNAL(statusMessage(const QString &amp;)), SLOT(ft_statusMessage(const QString &amp;)));
@@ -1561,13 +1562,15 @@ FileTransDlg::FileTransDlg(PsiCon *psi)
 	setWindowIcon(IconsetFactory::icon(&quot;psi/filemanager&quot;).icon());
 #endif
 
-	QVBoxLayout *vb = new QVBoxLayout(this, 11, 6);
+	QVBoxLayout *vb = new QVBoxLayout(this);
+	vb-&gt;setSpacing(6); // FIXME: Is forced spacing really necessary?
 	d-&gt;lv = new FileTransView(this);
 	connect(d-&gt;lv, SIGNAL(itemCancel(int)), SLOT(itemCancel(int)));
 	connect(d-&gt;lv, SIGNAL(itemOpenDest(int)), SLOT(itemOpenDest(int)));
 	connect(d-&gt;lv, SIGNAL(itemClear(int)), SLOT(itemClear(int)));
 	vb-&gt;addWidget(d-&gt;lv);
-	QHBoxLayout *hb = new QHBoxLayout(vb);
+	QHBoxLayout *hb = new QHBoxLayout;
+	vb-&gt;addLayout(hb);
 	hb-&gt;addStretch(1);
 	QPushButton *pb_clear = new QPushButton(tr(&quot;Clear &amp;Finished&quot;), this);
 	connect(pb_clear, SIGNAL(clicked()), SLOT(clearFinished()));
@@ -1750,9 +1753,9 @@ void FileTransDlg::itemOpenDest(int id)
 	QString path;
 	bool recv = (i-&gt;h-&gt;mode() == FileTransferHandler::Receiving);
 	if(recv)
-		path = QFileInfo(i-&gt;h-&gt;saveName()).dirPath();
+		path = QFileInfo(i-&gt;h-&gt;saveName()).path();
 	else
-		path = QFileInfo(i-&gt;h-&gt;fileName()).dirPath();
+		path = QFileInfo(i-&gt;h-&gt;fileName()).path();
 
 	//printf(&quot;item open dest: [%s]\n&quot;, path.latin1());
 }</diff>
      <filename>src/filetransdlg.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -388,7 +388,7 @@ join &lt;channel&gt;{,&lt;channel&gt;} [pass{,&lt;pass&gt;}
 				version-&gt;go();
 				newstate = 0;
 			} else if (cmd == &quot;idle&quot; &amp;&amp; command.count() &gt; 1) {
-				QString nick = command[1].stripWhiteSpace();
+				QString nick = command[1].trimmed();
 				Jid target = dlg-&gt;jid().withResource(nick);
 				LastActivityTask *idle = new LastActivityTask(target, dlg-&gt;account()-&gt;client()-&gt;rootTask());
 				connect(idle, SIGNAL(finished()), SLOT(lastactivity_finished()));
@@ -1835,7 +1835,7 @@ GCFindDlg::GCFindDlg(const QString&amp; str, QWidget* parent)
 	setWindowTitle(tr(&quot;Find&quot;));
 	QVBoxLayout *vb = new QVBoxLayout(this);
 	vb-&gt;setMargin(4);
-	QHBoxLayout *hb = new QHBoxLayout(0);
+	QHBoxLayout *hb = new QHBoxLayout;
 	vb-&gt;addLayout(hb);
 	QLabel *l = new QLabel(tr(&quot;Find:&quot;), this);
 	hb-&gt;addWidget(l);
@@ -1849,7 +1849,7 @@ GCFindDlg::GCFindDlg(const QString&amp; str, QWidget* parent)
 	Line1-&gt;setFrameShape( QFrame::HLine );
 	vb-&gt;addWidget(Line1);
 
-	hb = new QHBoxLayout(0);
+	hb = new QHBoxLayout;
 	vb-&gt;addLayout(hb);
 	hb-&gt;addStretch(1);
 	QPushButton *pb_close = new QPushButton(tr(&quot;&amp;Close&quot;), this);</diff>
      <filename>src/groupchatdlg.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -129,7 +129,6 @@ public:
 };
 
 HistoryDlg::HistoryDlg(const Jid &amp;jid, PsiAccount *pa)
-	: QWidget(0, 0)
 {
 	setAttribute(Qt::WA_DeleteOnClose);
   	if ( PsiOptions::instance()-&gt;getOption(&quot;options.ui.mac.use-brushed-metal-windows&quot;).toBool() )
@@ -148,19 +147,23 @@ HistoryDlg::HistoryDlg(const Jid &amp;jid, PsiAccount *pa)
 	d-&gt;h = new EDBHandle(d-&gt;pa-&gt;edb());
 	connect(d-&gt;h, SIGNAL(finished()), SLOT(edb_finished()));
 
-	QVBoxLayout *vb1 = new QVBoxLayout(this, 8);
+	QVBoxLayout *vb1 = new QVBoxLayout(this);
 	d-&gt;lv = new HistoryView(this);
 	d-&gt;lv-&gt;setVScrollBarMode(Q3ScrollView::AlwaysOn);
 	connect(d-&gt;lv, SIGNAL(aOpenEvent(PsiEvent *)), SLOT(actionOpenEvent(PsiEvent *)));
 	QSizePolicy sp = d-&gt;lv-&gt;sizePolicy();
-	sp.setVerStretch(1);
+	sp.setVerticalStretch(1);
 	d-&gt;lv-&gt;setSizePolicy(sp);
 	vb1-&gt;addWidget(d-&gt;lv);
 
-	QHBoxLayout *hb1 = new QHBoxLayout(vb1);
+	QHBoxLayout *hb1 = new QHBoxLayout;
+	vb1-&gt;addLayout(hb1);
 
-	QVBoxLayout *vb2 = new QVBoxLayout(hb1);
-	QHBoxLayout *hb2 = new QHBoxLayout(vb2);
+	QVBoxLayout *vb2 = new QVBoxLayout;
+	hb1-&gt;addLayout(vb2);
+
+	QHBoxLayout *hb2 = new QHBoxLayout;
+	vb2-&gt;addLayout(hb2);
 
 	//d-&gt;busy = new BusyWidget(this);
 	//hb1-&gt;addWidget(d-&gt;busy);
@@ -180,7 +183,8 @@ HistoryDlg::HistoryDlg(const Jid &amp;jid, PsiAccount *pa)
 	connect(d-&gt;pb_next, SIGNAL(clicked()), SLOT(doNext()));
 	hb2-&gt;addWidget(d-&gt;pb_next);
 
-	QHBoxLayout *hb3 = new QHBoxLayout(vb2);
+	QHBoxLayout *hb3 = new QHBoxLayout;
+	vb2-&gt;addLayout(hb3);
 
 	d-&gt;le_find = new QLineEdit(this);
 	connect(d-&gt;le_find, SIGNAL(textChanged(const QString &amp;)), SLOT(le_textChanged(const QString &amp;)));
@@ -196,7 +200,9 @@ HistoryDlg::HistoryDlg(const Jid &amp;jid, PsiAccount *pa)
 	sep-&gt;setFrameShape(QFrame::VLine);
 	hb1-&gt;addWidget(sep);
 
-	QVBoxLayout *vb3 = new QVBoxLayout(hb1);
+	QVBoxLayout *vb3 = new QVBoxLayout;
+	hb1-&gt;addLayout(vb3);
+
 	QPushButton *pb_save = new QPushButton(tr(&quot;&amp;Export...&quot;), this);
 	connect(pb_save, SIGNAL(clicked()), SLOT(doSave()));
 	vb3-&gt;addWidget(pb_save);
@@ -210,7 +216,8 @@ HistoryDlg::HistoryDlg(const Jid &amp;jid, PsiAccount *pa)
 
 	hb1-&gt;addStretch(1);
 
-	QVBoxLayout *vb4 = new QVBoxLayout(hb1);
+	QVBoxLayout *vb4 = new QVBoxLayout;
+	hb1-&gt;addLayout(vb4);
 	vb4-&gt;addStretch(1);
 
 	QPushButton *pb_close = new QPushButton(tr(&quot;&amp;Close&quot;), this);
@@ -507,7 +514,7 @@ void HistoryDlg::exportHistory(const QString &amp;fname)
 				MessageEvent *me = (MessageEvent *)e;
 				stream &lt;&lt; heading &lt;&lt; endl;
 
-				QStringList lines = QStringList::split('\n', me-&gt;message().body(), true);
+				QStringList lines = me-&gt;message().body().split('\n', QString::KeepEmptyParts);
 				foreach(const QString&amp; str, lines) {
 					QStringList sub = wrapString(str, 72);
 					foreach(const QString&amp; str2, sub) {</diff>
      <filename>src/historydlg.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -98,8 +98,7 @@ InfoDlg::InfoDlg(int type, const Jid &amp;j, const VCard &amp;vcard, PsiAccount *pa, QWi
 	d-&gt;busy = ui_.busy;
 	d-&gt;bdayDateFormat = &quot;yyyy-MM-dd&quot;; //FIXME make settings for custom date format, but its ISO now
 
-	ui_.te_desc-&gt;setTextFormat(Qt::PlainText);
-
+	ui_.te_desc-&gt;setAcceptRichText(false);
 
 	setWindowTitle(d-&gt;jid.full());
 #ifndef Q_WS_MAC
@@ -155,7 +154,7 @@ InfoDlg::InfoDlg(int type, const Jid &amp;j, const VCard &amp;vcard, PsiAccount *pa, QWi
 	connect(d-&gt;pa-&gt;client(), SIGNAL(resourceUnavailable(const Jid &amp;, const Resource &amp;)), SLOT(contactUnavailable(const Jid &amp;, const Resource &amp;)));
 	connect(d-&gt;pa,SIGNAL(updateContact(const Jid&amp;)),SLOT(contactUpdated(const Jid&amp;)));
 	ui_.te_status-&gt;setReadOnly(true);
-	ui_.te_status-&gt;setTextFormat(Qt::RichText);
+	ui_.te_status-&gt;setAcceptRichText(true);
 	PsiRichText::install(ui_.te_status-&gt;document());
 	updateStatus();
 	foreach(UserListItem* u, d-&gt;pa-&gt;findRelevant(j)) {
@@ -395,7 +394,7 @@ void InfoDlg::setEdited(bool x)
 	ui_.le_orgName-&gt;setModified(x);
 	ui_.le_orgUnit-&gt;setModified(x);
 	ui_.le_title-&gt;setModified(x);
-	ui_.le_role-&gt;setEdited(x);
+	ui_.le_role-&gt;setModified(x);
 
 	d-&gt;te_edited = x;
 }
@@ -590,7 +589,7 @@ VCard InfoDlg::makeVCard()
 
 	v.setTitle( ui_.le_title-&gt;text() );
 	v.setRole( ui_.le_role-&gt;text() );
-	v.setDesc( ui_.te_desc-&gt;text() );
+	v.setDesc( ui_.te_desc-&gt;toPlainText() );
 
 	return v;
 }
@@ -732,7 +731,7 @@ void InfoDlg::contactAvailable(const Jid &amp;j, const Resource &amp;r)
 void InfoDlg::contactUnavailable(const Jid &amp;j, const Resource &amp;r)
 {
 	if (d-&gt;jid.compare(j,false)) {
-		d-&gt;infoRequested.remove(j.withResource(r.name()).full());
+		d-&gt;infoRequested.removeAll(j.withResource(r.name()).full());
 	}
 }
 </diff>
      <filename>src/infodlg.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -924,18 +924,18 @@ void MainWin::buildTrayMenu()
 	d-&gt;trayMenu-&gt;clear();
 
 	if(d-&gt;nextAmount &gt; 0) {
-		d-&gt;trayMenu-&gt;insertItem(tr(&quot;Receive next event&quot;), this, SLOT(doRecvNextEvent()));
+		d-&gt;trayMenu-&gt;addAction(tr(&quot;Receive next event&quot;), this, SLOT(doRecvNextEvent()));
 		d-&gt;trayMenu-&gt;addSeparator();
 	}
 
 	if(isHidden()) {
-		d-&gt;trayMenu-&gt;insertItem(tr(&quot;Un&amp;hide&quot;), this, SLOT(trayShow()));
+		d-&gt;trayMenu-&gt;addAction(tr(&quot;Un&amp;hide&quot;), this, SLOT(trayShow()));
 	}
 	else {
-		d-&gt;trayMenu-&gt;insertItem(tr(&quot;&amp;Hide&quot;), this, SLOT(trayHide()));
+		d-&gt;trayMenu-&gt;addAction(tr(&quot;&amp;Hide&quot;), this, SLOT(trayHide()));
 	}
 	d-&gt;optionsButton-&gt;addTo(d-&gt;trayMenu);
-	d-&gt;trayMenu-&gt;insertItem(tr(&quot;Status&quot;), d-&gt;statusMenu);
+	d-&gt;trayMenu-&gt;addMenu(d-&gt;statusMenu);
 	
 	d-&gt;trayMenu-&gt;addSeparator();
 	// TODO!</diff>
      <filename>src/mainwin.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -344,7 +344,8 @@ void OptionsDlg::Private::openTab(QString id)
 
 				// TODO: how about QScrollView for large tabs?
 				// idea: maybe do it only for those, whose sizeHint is bigger than ws_tabs'
-				QWidget *w = new QWidget(dlg-&gt;ws_tabs, &quot;QWidgetStack/tab&quot;);
+				QWidget *w = new QWidget(dlg-&gt;ws_tabs);
+				w-&gt;setObjectName(&quot;QWidgetStack/tab&quot;);
 				QVBoxLayout *vbox = new QVBoxLayout(w);
 				vbox-&gt;setSpacing(0);
 				vbox-&gt;setMargin(0);</diff>
      <filename>src/options/optionsdlg.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -24,18 +24,19 @@
  */
 
 #include &lt;QFileDialog&gt;
-#include &lt;qinputdialog.h&gt;
-#include &lt;qtimer.h&gt;
-#include &lt;qmessagebox.h&gt;
-#include &lt;qpointer.h&gt;
-#include &lt;qapplication.h&gt;
-#include &lt;qpushbutton.h&gt;
-#include &lt;qlayout.h&gt;
+#include &lt;QInputDialog&gt;
+#include &lt;QTimer&gt;
+#include &lt;QMessageBox&gt;
+#include &lt;QPointer&gt;
+#include &lt;QApplication&gt;
+#include &lt;QPushButton&gt;
+#include &lt;QLayout&gt;
 #include &lt;QUrl&gt;
-#include &lt;qobject.h&gt;
-#include &lt;qmap.h&gt;
+#include &lt;QObject&gt;
+#include &lt;QMap&gt;
 #include &lt;qca.h&gt;
-#include &lt;qfileinfo.h&gt;
+#include &lt;QFileInfo&gt;
+#include &lt;QIcon&gt;
 #include &lt;QPixmap&gt;
 #include &lt;QFrame&gt;
 #include &lt;QList&gt;
@@ -2994,16 +2995,16 @@ ChatDlg *PsiAccount::ensureChatDlg(const Jid &amp;j)
 		if ( PsiOptions::instance()-&gt;getOption(&quot;options.ui.tabs.use-tabs&quot;).toBool() )
 			window = d-&gt;tabManager-&gt;getManagingTabs(c);
 		if(window &amp;&amp; window-&gt;isHidden()) {
-			const QPixmap *pp = c-&gt;icon();
+			QPixmap pp = c-&gt;windowIcon().pixmap(16,16); // FIXME: 16x16 is just a guess of what size old QWidget::icon() used
 			QPixmap p;
-			if(pp)
-				p = *pp;
+			if(!pp.isNull())
+				p = pp;
 #ifdef __GNUC__
 #warning &quot;Removed reparenting call from qwextend&quot;
 #endif
 			//reparent_good(window, 0, false);
 			if(!p.isNull())
-				c-&gt;setIcon(p);
+				c-&gt;setWindowIcon(p);
 		}
 #endif
 	}</diff>
      <filename>src/psiaccount.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -119,7 +119,7 @@ PsiOptionsEditor::PsiOptionsEditor(QWidget *parent)
 	tv_-&gt;resizeColumnToContents(0);
 	tv_colWidth = tv_-&gt;columnWidth(0);
 	
-	QHBoxLayout *infoLine = new QHBoxLayout(0);
+	QHBoxLayout *infoLine = new QHBoxLayout;
 	layout-&gt;addLayout(infoLine);
 	lb_path = new QLabel(this);
 	lb_path-&gt;setTextInteractionFlags(Qt::TextSelectableByMouse);
@@ -144,7 +144,7 @@ PsiOptionsEditor::PsiOptionsEditor(QWidget *parent)
 
 	layout-&gt;addWidget(lb_comment);
 
-	QHBoxLayout* buttonLine = new QHBoxLayout(0);
+	QHBoxLayout* buttonLine = new QHBoxLayout;
 	layout-&gt;addLayout(buttonLine);
 
 	cb_ = new QCheckBox(this);</diff>
      <filename>src/psioptionseditor.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -378,7 +378,7 @@ void PsiPopup::setData(const Jid &amp;j, const Resource &amp;r, const UserListItem *u, c
 	if ( d-&gt;popupType != AlertHeadline &amp;&amp; (d-&gt;popupType != AlertFile || !PsiOptions::instance()-&gt;getOption(&quot;options.ui.file-transfer.auto-popup&quot;).toBool()) )
 		setData(icon, contactText);
 	else if ( d-&gt;popupType == AlertHeadline ) {
-		QVBoxLayout *vbox = new QVBoxLayout(0);
+		QVBoxLayout *vbox = new QVBoxLayout;
 		vbox-&gt;addLayout( d-&gt;createContactInfo(icon, contactText) );
 
 		vbox-&gt;addSpacing(5);</diff>
      <filename>src/psipopup.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -113,14 +113,13 @@ QPixmap PsiTrayIcon::makeIcon()
 
 #ifdef Q_WS_X11
 	// on X11, the KDE dock is 22x22.  let's make our icon_ &quot;seem&quot; bigger.
-	QImage real(22,22,32);
+	QImage real(22,22,QImage::Format_ARGB32);
 	QImage in = icon_-&gt;image();
 	in.detach();
-	real.setAlphaBuffer(true);
 
 	// make sure it is no bigger than 16x16
 	if(in.width() &gt; 16 || in.height() &gt; 16)
-		in = in.smoothScale(16,16);
+		in = in.scaled(16,16,Qt::IgnoreAspectRatio,Qt::SmoothTransformation);
 
 	int xo = (real.width() - in.width()) / 2;
 	int yo = (real.height() - in.height()) / 2;
@@ -155,9 +154,7 @@ QPixmap PsiTrayIcon::makeIcon()
 		}
 	}
 
-	QPixmap pixmap;
-	pixmap.convertFromImage(real);
-	return pixmap;
+	return QPixmap::fromImage(real);
 #else
 	return icon_-&gt;pixmap();
 #endif</diff>
      <filename>src/psitrayicon.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -174,7 +174,7 @@ RegistrationDlg::RegistrationDlg(const Jid &amp;jid, PsiAccount *pa)
 	line-&gt;setFrameStyle(QFrame::HLine | QFrame::Sunken);
 	vb1-&gt;addWidget(line);
 
-	QHBoxLayout *hb1 = new QHBoxLayout(0);
+	QHBoxLayout *hb1 = new QHBoxLayout;
 	vb1-&gt;addLayout(hb1);
 	d-&gt;busy = new BusyWidget(this);
 	hb1-&gt;addWidget(d-&gt;busy);</diff>
      <filename>src/registrationdlg.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -52,7 +52,7 @@ ShowTextDlg::ShowTextDlg(const QString &amp;fname, bool rich, QWidget *parent)
 
 	vb1-&gt;addWidget(te);
 
-	QHBoxLayout *hb1 = new QHBoxLayout(0);
+	QHBoxLayout *hb1 = new QHBoxLayout;
 	vb1-&gt;addLayout(hb1);
 	hb1-&gt;addStretch(1);
 	QPushButton *pb = new QPushButton(tr(&quot;&amp;OK&quot;), this);
@@ -79,7 +79,7 @@ ShowTextDlg::ShowTextDlg(const QString &amp;text, bool nonfile, bool rich, QWidget *
 
 	vb1-&gt;addWidget(te);
 
-	QHBoxLayout *hb1 = new QHBoxLayout(0);
+	QHBoxLayout *hb1 = new QHBoxLayout;
 	vb1-&gt;addLayout(hb1);
 	hb1-&gt;addStretch(1);
 	QPushButton *pb = new QPushButton(tr(&quot;&amp;OK&quot;), this);</diff>
      <filename>src/showtextdlg.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -56,7 +56,7 @@ StatusShowDlg::StatusShowDlg(const UserListItem &amp;u)
 	vb-&gt;setMargin(8);
 	PsiTextView *te = new PsiTextView(this);
 	vb-&gt;addWidget(te);
-	QHBoxLayout *hb = new QHBoxLayout(0);
+	QHBoxLayout *hb = new QHBoxLayout;
 	vb-&gt;addLayout(hb);
 	QPushButton *pb = new QPushButton(tr(&quot;&amp;Close&quot;), this);
 	connect(pb, SIGNAL(clicked()), SLOT(close()));
@@ -130,7 +130,7 @@ void StatusSetDlg::init()
 	// build the dialog
 	QVBoxLayout *vb = new QVBoxLayout(this);
 	vb-&gt;setMargin(8);
-	QHBoxLayout *hb1 = new QHBoxLayout(0);
+	QHBoxLayout *hb1 = new QHBoxLayout;
 	vb-&gt;addLayout(hb1);
 
 	// Status
@@ -167,7 +167,7 @@ void StatusSetDlg::init()
 	d-&gt;te-&gt;setAcceptRichText(false);
 	d-&gt;te-&gt;setMinimumHeight(50);
 	vb-&gt;addWidget(d-&gt;te);
-	QHBoxLayout *hb = new QHBoxLayout(0);
+	QHBoxLayout *hb = new QHBoxLayout;
 	vb-&gt;addLayout(hb);
 	QPushButton *pb1 = new QPushButton(tr(&quot;&amp;Set&quot;), this);
 	QPushButton *pb2 = new QPushButton(tr(&quot;&amp;Cancel&quot;), this);</diff>
      <filename>src/statusdlg.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -135,7 +135,7 @@ static QString unixHeuristicDetect() {
 			f.readLine( buffer, 128 );
 			QString desc(buffer);
 
-			desc = desc.stripWhiteSpace ();
+			desc = desc.trimmed();
 
 			switch ( osInfo[i].flags ) {
 				case OsUseFile:</diff>
      <filename>src/systeminfo.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -5,7 +5,7 @@
 #include &lt;QKeySequence&gt;
 #include &lt;QBuffer&gt;
 
-#include &quot;optionstree.h&quot;;
+#include &quot;optionstree.h&quot;
 #include &quot;varianttree.h&quot;
 #include &quot;xmpp/base64/base64.h&quot;
 </diff>
      <filename>src/tools/optionstree/optionstreewriter.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -260,7 +260,7 @@ public:
 		QHBoxLayout *frameLayout = new QHBoxLayout(frame);
 		frameLayout-&gt;setMargin(0);
 		frameLayout-&gt;setSpacing(0);
-		QVBoxLayout *layout = new QVBoxLayout(0);
+		QVBoxLayout *layout = new QVBoxLayout;
 		layout-&gt;setMargin(0);
 		layout-&gt;setSpacing(0);
 		frameLayout-&gt;addLayout( layout );</diff>
      <filename>src/widgets/fancylabel.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -186,7 +186,7 @@ void FancyPopup::Private::initContents(QString title, const PsiIcon *icon, bool
 	vbox-&gt;setSpacing(0);
 
 	// top row
-	QHBoxLayout *tophbox = new QHBoxLayout(0);
+	QHBoxLayout *tophbox = new QHBoxLayout;
 	vbox-&gt;addLayout(tophbox);
 	QLabel *top1 = new QLabel(popup);
 	top1-&gt;setAutoFillBackground(true);
@@ -194,7 +194,7 @@ void FancyPopup::Private::initContents(QString title, const PsiIcon *icon, bool
 	top1-&gt;setPalette(backgroundPalette);
 	tophbox-&gt;addWidget(top1);
 
-	QVBoxLayout *topvbox = new QVBoxLayout(0);
+	QVBoxLayout *topvbox = new QVBoxLayout;
 	tophbox-&gt;addLayout(topvbox);
 	QLabel *top2 = new QLabel(popup);
 	top2-&gt;setAutoFillBackground(true);
@@ -202,7 +202,7 @@ void FancyPopup::Private::initContents(QString title, const PsiIcon *icon, bool
 	top2-&gt;setPalette(backgroundPalette);
 	topvbox-&gt;addWidget(top2);
 
-	QHBoxLayout *tophbox2 = new QHBoxLayout(0);
+	QHBoxLayout *tophbox2 = new QHBoxLayout;
 	topvbox-&gt;addLayout(tophbox2);
 
 	IconLabel *titleIcon = new IconLabel(popup);
@@ -276,7 +276,7 @@ void FancyPopup::Private::initContents(QString title, const PsiIcon *icon, bool
 	tophbox-&gt;addWidget(top4);
 
 	// middle row
-	QHBoxLayout *middlehbox = new QHBoxLayout(0);
+	QHBoxLayout *middlehbox = new QHBoxLayout;
 	vbox-&gt;addLayout(middlehbox);
 	QLabel *middle1 = new QLabel(popup);
 	middle1-&gt;setAutoFillBackground(true);
@@ -285,7 +285,7 @@ void FancyPopup::Private::initContents(QString title, const PsiIcon *icon, bool
 	middlehbox-&gt;addWidget(middle1);
 
 	middlehbox-&gt;addSpacing(5);
-	QVBoxLayout *middlevbox = new QVBoxLayout(0);
+	QVBoxLayout *middlevbox = new QVBoxLayout;
 	middlehbox-&gt;addLayout(middlevbox);
 	middlevbox-&gt;addSpacing(5);
 	layout = middlevbox; // we'll add more items later in addLayout()
@@ -298,7 +298,7 @@ void FancyPopup::Private::initContents(QString title, const PsiIcon *icon, bool
 	middlehbox-&gt;addWidget(middle3);
 
 	// bottom row
-	QHBoxLayout *bottomhbox = new QHBoxLayout(0);
+	QHBoxLayout *bottomhbox = new QHBoxLayout;
 	vbox-&gt;addLayout(bottomhbox);
 	QLabel *bottom1 = new QLabel(popup);
 	bottom1-&gt;setAutoFillBackground(true);</diff>
      <filename>src/widgets/fancypopup.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -40,7 +40,7 @@ PsiTabWidget::PsiTabWidget(QWidget *parent)
 	layout_ = new QVBoxLayout(this);
 	layout_-&gt;setMargin(0);
 	layout_-&gt;setSpacing(0);
-	barLayout_ = new QHBoxLayout(0);
+	barLayout_ = new QHBoxLayout;
 	layout_-&gt;addLayout(barLayout_);
 	barLayout_-&gt;setMargin(0);
 	barLayout_-&gt;setSpacing(0);</diff>
      <filename>src/widgets/psitabwidget.cpp</filename>
    </modified>
    <modified>
      <diff>@@ -185,7 +185,7 @@ XmlPrompt::XmlPrompt(QWidget *parent)
 	te-&gt;setAcceptRichText(false);
 	vb1-&gt;addWidget(te);
 
-	QHBoxLayout *hb1 = new QHBoxLayout(0);
+	QHBoxLayout *hb1 = new QHBoxLayout;
 	vb1-&gt;addLayout(hb1);
 	QPushButton *pb;
 </diff>
      <filename>src/xmlconsole.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f2c48155d785ac1ae4e41b9ed97c29b762246402</id>
    </parent>
  </parents>
  <author>
    <name>Michail Pishchagin</name>
    <email>mblsha@users.sourceforge.net</email>
  </author>
  <url>http://github.com/mblsha/psi/commit/621182c561a4c11ecbfaee55f8770a35d74f2588</url>
  <id>621182c561a4c11ecbfaee55f8770a35d74f2588</id>
  <committed-date>2009-11-04T10:40:16-08:00</committed-date>
  <authored-date>2009-11-04T10:17:09-08:00</authored-date>
  <message>More de-qt3support-ization. Thanks to Constantin Makshin for the patch.</message>
  <tree>be7e25c50a039efe3f22ee82f9be797f950b8bb7</tree>
  <committer>
    <name>Michail Pishchagin</name>
    <email>mblsha@users.sourceforge.net</email>
  </committer>
</commit>
