]> git.sesse.net Git - kdenlive/commitdiff
Indentation fixes
authorMads Bondo Dydensborg <mads@dydensborg.dk>
Fri, 2 Jan 2009 00:16:53 +0000 (00:16 +0000)
committerMads Bondo Dydensborg <mads@dydensborg.dk>
Fri, 2 Jan 2009 00:16:53 +0000 (00:16 +0000)
svn path=/branches/KDE4/; revision=2865

src/titledocument.cpp
src/titlewidget.cpp
src/titlewidget.h

index ef67ec3620181e8574f70c4613f89bb19c15ab3d..e517999a65411fddfd2fdbf58d137bd6401c0268 100644 (file)
@@ -124,7 +124,7 @@ QDomDocument TitleDocument::xml(QGraphicsPolygonItem* startv, QGraphicsPolygonIt
   * \returns The background color of the document, inclusive alpha. If none found, returns (0,0,0,0) */
 QColor TitleDocument::getBackgroundColor() {
     QColor color(0, 0, 0, 0);
-    if ( scene ) {
+    if (scene) {
         QList<QGraphicsItem *> items = scene->items();
         for (int i = 0; i < items.size(); i++) {
             if (items.at(i)->zValue() == -1100) {
index 7494281b1c0f28dcf4ceb0427518d69fa1046a5b..08eb7f2579a56c091bd27525b18236c79f998392 100644 (file)
@@ -94,7 +94,7 @@ TitleWidget::TitleWidget(KUrl url, QString projectPath, Render *render, QWidget
 
     // mbd
     connect(this, SIGNAL(accepted()), this, SLOT(slotAccepted()));
-    
+
     buttonFitZoom->setIcon(KIcon("zoom-fit-best"));
     buttonRealSize->setIcon(KIcon("zoom-original"));
     buttonBold->setIcon(KIcon("format-text-bold"));
@@ -178,7 +178,7 @@ TitleWidget::TitleWidget(KUrl url, QString projectPath, Render *render, QWidget
 
     // mbd: load saved settings
     readChoices();
-    
+
     initViewports();
     QTimer::singleShot(500, this, SLOT(slotAdjustZoom()));
     graphicsView->show();
@@ -673,7 +673,7 @@ void TitleWidget::setXml(QDomDocument doc) {
     kcolorbutton->setColor(background_color);
     horizontalSlider->blockSignals(false);
     kcolorbutton->blockSignals(false);
-    
+
     slotSelectTool();
 }
 
@@ -706,43 +706,43 @@ void TitleWidget::slotAccepted() {
 void TitleWidget::writeChoices() {
     // Get a pointer to a shared configuration instance, then get the TitleWidget group.
     KSharedConfigPtr config = KGlobal::config();
-    KConfigGroup titleConfig( config, "TitleWidget" );
+    KConfigGroup titleConfig(config, "TitleWidget");
     // Write the entries
     titleConfig.writeEntry("font_family", font_family->currentFont());
-    titleConfig.writeEntry("font_size", font_size->value() );
-    titleConfig.writeEntry("font_color", fontColorButton->color() );
-    titleConfig.writeEntry("font_alpha", textAlpha->value() );
+    titleConfig.writeEntry("font_size", font_size->value());
+    titleConfig.writeEntry("font_color", fontColorButton->color());
+    titleConfig.writeEntry("font_alpha", textAlpha->value());
     titleConfig.writeEntry("font_bold", buttonBold->isChecked());
     titleConfig.writeEntry("font_italic", buttonItalic->isChecked());
     titleConfig.writeEntry("font_underlined", buttonUnder->isChecked());
-    
+
     titleConfig.writeEntry("rect_foreground_color", rectFColor->color());
     titleConfig.writeEntry("rect_foreground_alpha", rectFAlpha->value());
     titleConfig.writeEntry("rect_background_color", rectBColor->color());
     titleConfig.writeEntry("rect_background_alpha", rectBAlpha->value());
     titleConfig.writeEntry("rect_line_width", rectLineWidth->value());
-    
+
     titleConfig.writeEntry("background_color", kcolorbutton->color());
     titleConfig.writeEntry("background_alpha", horizontalSlider->value());
     //! \todo Not sure if I should sync - it is probably safe to do it
     config->sync();
-    
+
 }
 
 /** \brief Read the last stored choices into the dialog */
 void TitleWidget::readChoices() {
     // Get a pointer to a shared configuration instance, then get the TitleWidget group.
     KSharedConfigPtr config = KGlobal::config();
-    KConfigGroup titleConfig( config, "TitleWidget" );
+    KConfigGroup titleConfig(config, "TitleWidget");
     // read the entries
     font_family->setCurrentFont(titleConfig.readEntry("font_family", font_family->currentFont()));
-    font_size->setValue(titleConfig.readEntry( "font_size", font_size->value()));
+    font_size->setValue(titleConfig.readEntry("font_size", font_size->value()));
     fontColorButton->setColor(titleConfig.readEntry("font_color", fontColorButton->color()));
     textAlpha->setValue(titleConfig.readEntry("font_alpha", textAlpha->value()));
     buttonBold->setChecked(titleConfig.readEntry("font_bold", buttonBold->isChecked()));
     buttonItalic->setChecked(titleConfig.readEntry("font_italic", buttonItalic->isChecked()));
     buttonUnder->setChecked(titleConfig.readEntry("font_underlined", buttonUnder->isChecked()));
-    
+
     rectFColor->setColor(titleConfig.readEntry("rect_foreground_color", rectFColor->color()));
     rectFAlpha->setValue(titleConfig.readEntry("rect_foreground_alpha", rectFAlpha->value()));
     rectBColor->setColor(titleConfig.readEntry("rect_background_color", rectBColor->color()));
index eaf341dcbb4f75320944bb40cf772881d4d55bcf..88756b9de02620757810632d379f04306f1c6be5 100644 (file)
@@ -50,19 +50,19 @@ public:
     TitleWidget(KUrl url, QString projectPath, Render *render, QWidget *parent = 0);
     QDomDocument xml();
     void setXml(QDomDocument doc);
-    
+
     /** \brief Find first available filename of the form titleXXX.png in projectUrl + "/titles/" directory
-    * \param projectUrl Url to directory of project. 
+    * \param projectUrl Url to directory of project.
      * \returns A list, with the name in the form of "/path/to/titles/titleXXX" as the first element, the extension
      * ".png" as the second element.
-     * 
+     *
      * The path "/titles/" is appended to projectUrl to locate the actual directory that contains the title pngs. */
     static QStringList getFreeTitleInfo(const KUrl &projectUrl);
-    
+
     /** \brief Build a filename from a projectUrl and a titleName
      * \param projectUrl Url to directory of project.
      * \param titleName Name of title, on the form "titleXXX"
-     * 
+     *
      * The path "/titles/" is appended to projectUrl to build the directoryname, then .pgn is appended to
      * get the filename. It is not checked that the title png actually exists, only the name is build and
      * returned. */