summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio D'Urso <fabiodurso@hotmail.it>2014-08-23 19:36:07 (GMT)
committerFabio D'Urso <fabiodurso@hotmail.it>2014-08-23 19:48:50 (GMT)
commit559ba0f01ed99d35c9cf01618e49cd6d458dbc5e (patch)
tree50a809a84e45637941b4b1c39799203b4526d45c
parent2a52e0c4e143249644697cf534806135cd34e409 (diff)
Remove unused/commented out code from kimgio generator
-rw-r--r--generators/kimgio/CMakeLists.txt2
-rw-r--r--generators/kimgio/generator_kimgio.cpp16
-rw-r--r--generators/kimgio/generator_kimgio.h4
-rw-r--r--generators/kimgio/gui.rc6
4 files changed, 0 insertions, 28 deletions
diff --git a/generators/kimgio/CMakeLists.txt b/generators/kimgio/CMakeLists.txt
index 0eea1fb..ef79738 100644
--- a/generators/kimgio/CMakeLists.txt
+++ b/generators/kimgio/CMakeLists.txt
@@ -25,5 +25,3 @@ target_link_libraries( kimgiotest ${KDE4_KDECORE_LIBS} ${KDE4_KDEUI_LIBS} ${KDE4
install( FILES libokularGenerator_kimgio.desktop okularKimgio.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
install( PROGRAMS okularApplication_kimgio.desktop active-documentviewer_kimgio.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
-
-#install( FILES gui.rc DESTINATION ${DATA_INSTALL_DIR}/okular_kimgio )
diff --git a/generators/kimgio/generator_kimgio.cpp b/generators/kimgio/generator_kimgio.cpp
index 96bc4dd..b2e5f8d 100644
--- a/generators/kimgio/generator_kimgio.cpp
+++ b/generators/kimgio/generator_kimgio.cpp
@@ -56,17 +56,6 @@ KIMGIOGenerator::KIMGIOGenerator( QObject *parent, const QVariantList &args )
setFeature( TiledRendering );
setFeature( PrintNative );
setFeature( PrintToFile );
-
-/*
- setComponentData( *ownComponentData() );
-
- setXMLFile( "gui.rc" );
- QAction * kimgio_test = new QAction( this );
- kimgio_test->setText( "Image test" );
- kimgio_test->setIcon( QIcon::fromTheme( "smiley" ) );
- connect( kimgio_test, SIGNAL(triggered(bool)), this, SLOT(slotTest()) );
- actionCollection()->addAction( "kimgio_test", kimgio_test );
-*/
}
KIMGIOGenerator::~KIMGIOGenerator()
@@ -181,11 +170,6 @@ bool KIMGIOGenerator::print( QPrinter& printer )
return true;
}
-void KIMGIOGenerator::slotTest()
-{
- kDebug() << "Test";
-}
-
Okular::DocumentInfo KIMGIOGenerator::generateDocumentInfo( const QSet<Okular::DocumentInfo::Key> &keys ) const
{
return docInfo;
diff --git a/generators/kimgio/generator_kimgio.h b/generators/kimgio/generator_kimgio.h
index a33bf0b..feb642c 100644
--- a/generators/kimgio/generator_kimgio.h
+++ b/generators/kimgio/generator_kimgio.h
@@ -17,7 +17,6 @@
class KIMGIOGenerator : public Okular::Generator
{
- Q_OBJECT
public:
KIMGIOGenerator( QObject *parent, const QVariantList &args );
virtual ~KIMGIOGenerator();
@@ -36,9 +35,6 @@ class KIMGIOGenerator : public Okular::Generator
bool doCloseDocument();
QImage image( Okular::PixmapRequest * request );
- private slots:
- void slotTest();
-
private:
QImage m_img;
Okular::DocumentInfo docInfo;
diff --git a/generators/kimgio/gui.rc b/generators/kimgio/gui.rc
deleted file mode 100644
index a89073b..0000000
--- a/generators/kimgio/gui.rc
+++ /dev/null
@@ -1,6 +0,0 @@
-<!DOCTYPE kpartgui SYSTEM "kpartgui.dtd">
-<kpartgui version="1" name="okular_kimgio" >
- <ToolBar name="mainToolBar"><text>Main Toolbar</text>
- <Action name="kimgio_test" />
- </ToolBar>
-</kpartgui>