[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kdeprint
From:       Albert Astals Cid <tsdgeos () terra ! es>
Date:       2007-06-17 9:43:09
Message-ID: 1182073389.722600.31423.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 676616 by aacid:

kde print preview now passes "Print/Preview" to the created part as argument
that may do the part modify itself a bit to better suit print preview needs
The question is: Where to document this?


 M  +3 -1      kprintpreview.cpp  


--- trunk/KDE/kdelibs/kdeprint/kprintpreview.cpp #676615:676616
@@ -187,7 +187,9 @@
 void KPrintPreview::initView(KLibFactory *factory)
 {
 	// load the component
-	d->gvpart_ = (KParts::ReadOnlyPart*)factory->create(d->mainwidget_, "KParts::ReadOnlyPart");
+	QStringList args;
+	args << "Print/Preview";
+	d->gvpart_ = (KParts::ReadOnlyPart*)factory->create(d->mainwidget_, "KParts::ReadOnlyPart", args);
 
 	// populate the toolbar
 	if (d->previewonly_)
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic