Hi,

I attached a patch to this mail to support printing in the history viewer.

Metta
Heiko
Index: historydialog.cpp
===================================================================
--- historydialog.cpp	(Revision 521653)
+++ historydialog.cpp	(Arbeitskopie)
@@ -179,6 +179,7 @@
 	KActionCollection* ac = new KActionCollection(this);
 	mCopyAct = KStdAction::copy( this, SLOT(slotCopy()), ac );
 	mCopyURLAct = new KAction( i18n( "Copy Link Address" ), QString::fromLatin1( "editcopy" ), 0, this, SLOT( slotCopyURL() ), ac );
+	mPrint = KStdAction::print(this, SLOT(slotPrint()), ac);
 
 	resize(650, 700);
 	centerOnScreen(this);
@@ -613,11 +614,18 @@
 	}
 	mCopyAct->setEnabled( mHtmlPart->hasSelection() );
 	mCopyAct->plug( chatWindowPopup );
+	chatWindowPopup->insertSeparator();
+	mPrint->plug(chatWindowPopup);
 	
 	connect( chatWindowPopup, SIGNAL( aboutToHide() ), chatWindowPopup, SLOT( deleteLater() ) );
 	chatWindowPopup->popup(point);
 }
 
+void HistoryDialog::slotPrint()
+{
+	mHtmlView->print();
+}
+
 void HistoryDialog::slotCopy()
 {
 	QString qsSelection;
Index: historydialog.h
===================================================================
--- historydialog.h	(Revision 521653)
+++ historydialog.h	(Arbeitskopie)
@@ -98,6 +98,7 @@
 		void slotRightClick(const QString &url, const QPoint &point);
 		void slotCopy();
 		void slotCopyURL();
+		void slotPrint();
 
 	private:
 		enum Disabled { Prev=1, Next=2 };
@@ -157,6 +158,7 @@
 
 		KAction *mCopyAct;
 		KAction *mCopyURLAct;
+		KAction *mPrint;
 		QString mURL;
 };
 

Attachment: pgpvhUNIMYTFB.pgp
Description: PGP signature

_______________________________________________
kopete-devel mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/kopete-devel

Reply via email to