Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 7f6e8bda authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Pali Rohár

Port to QTextBrowser

parent 6a511711
......@@ -11,7 +11,7 @@
</property>
<layout class="QVBoxLayout" >
<item>
<widget class="KTextBrowser" name="brLog" />
<widget class="QTextBrowser" name="brLog" />
</item>
<item>
<widget class="KTextEdit" name="mTextEdit" >
......@@ -29,11 +29,6 @@
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KTextBrowser</class>
<extends>QTextBrowser</extends>
<header>ktextbrowser.h</header>
</customwidget>
<customwidget>
<class>KTextEdit</class>
<extends>QTextEdit</extends>
......
......@@ -30,7 +30,7 @@
#include <KLocalizedString>
#include <kstandarddirs.h>
#include <ktextbrowser.h>
#include <qtextbrowser.h>
#include <kdebug.h>
#include <ktextedit.h>
......@@ -97,9 +97,9 @@ AIMUserInfoDialog::AIMUserInfoDialog( Kopete::Contact *c, AIMAccount *acc, QWidg
mMainWidget->userInfoFrame->setFrameStyle(QFrame::NoFrame | QFrame::Plain);
QVBoxLayout *l = new QVBoxLayout(mMainWidget->userInfoFrame);
l->setContentsMargins( 0, 0, 0, 0 );
userInfoView = new KTextBrowser(mMainWidget->userInfoFrame);
userInfoView = new QTextBrowser(mMainWidget->userInfoFrame);
userInfoView->setObjectName("userInfoView");
userInfoView->setNotifyClick(true);
//KF5 PORT ME userInfoView->setNotifyClick(true);
QObject::connect(
userInfoView, SIGNAL(urlClick(QString)),
this, SLOT(slotUrlClicked(QString)));
......
......@@ -22,7 +22,7 @@
namespace Kopete { class Contact; }
namespace Ui { class AIMUserInfoWidget; }
class KTextBrowser;
class QTextBrowser;
class KTextEdit;
class AIMAccount;
......@@ -37,7 +37,7 @@ class AIMUserInfoDialog : public KDialog
AIMAccount *mAccount;
Kopete::Contact* m_contact;
Ui::AIMUserInfoWidget *mMainWidget;
KTextBrowser *userInfoView;
QTextBrowser *userInfoView;
KTextEdit *userInfoEdit;
private slots:
......
......@@ -143,7 +143,7 @@
</widget>
</item>
<item row="4" column="0" colspan="4" >
<widget class="KTextBrowser" native="1" name="txtAwayMessage" >
<widget class="QTextBrowser" native="1" name="txtAwayMessage" >
<property name="sizePolicy" >
<sizepolicy vsizetype="Preferred" hsizetype="Expanding" >
<horstretch>0</horstretch>
......@@ -180,13 +180,6 @@
</item>
</layout>
</widget>
<customwidgets>
<customwidget>
<class>KTextBrowser</class>
<extends></extends>
<header>ktextbrowser.h</header>
</customwidget>
</customwidgets>
<tabstops>
<tabstop>txtNickName</tabstop>
<tabstop>txtScreenName</tabstop>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment