当前位置: 首页>>代码示例>>C++>>正文


C++ Album::title方法代码示例

本文整理汇总了C++中Album::title方法的典型用法代码示例。如果您正苦于以下问题:C++ Album::title方法的具体用法?C++ Album::title怎么用?C++ Album::title使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Album的用法示例。


在下文中一共展示了Album::title方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1:

Album::Album (const Album& alb, QQuickItem *parent):QQuickItem(parent)
{
    a_artist = alb.artist();
    a_title = alb.title();
    a_cover = alb.cover();
    a_year = alb.year();
    a_ID = alb.albumID();
}
开发者ID:cyrildzumts,项目名称:playermodules,代码行数:8,代码来源:album.cpp

示例2: showAlbumInfo

void SearchDialog::showAlbumInfo( const Album &a ){

    albumInfo->showAlbumInfo(a);

    artistLineEdit->setText(a.artists().join(", "));
    albumLineEdit->setText(a.title());
    genreLineEdit->setText(a.genre());
    qDebug()<<"a.year()"<<a.year();
    yearLineEdit->setText(QString::number(a.year()));
    formatLineEdit->setText( a.format() );
    countryLineEdit->setText( a.country() );
    labelLineEdit->setText( a.label() );
    //if( databaseComboBox->itemData(databaseComboBox->currentIndex()).toInt() == SearchDialog::DISCOGS ){
    if( database_->type()==MusicDatabase::DISCOGS ){
        rolesTextEdit->setText( a.roles().join(". ") );
        notesTextEdit->setText( a.notes() );
    }

}
开发者ID:ivareske,项目名称:TagEditor,代码行数:19,代码来源:SearchDialog.cpp

示例3: continueAlbumListing

void BatchFaceDetector::continueAlbumListing()
{
    kDebug() << d->albumListing.isRunning() << !d->pipeline.hasFinished();

    // we get here by the finished signal from both, and want both to have finished to continue
    if (d->albumListing.isRunning() || !d->pipeline.hasFinished())
    {
        return;
    }

    if (d->albumTodoList.isEmpty())
    {
        return complete();
    }

    Album* album = d->albumTodoList.takeFirst();
    kDebug() << "Album" << album->title();
    d->albumListing.allItemsFromAlbum(album);
}
开发者ID:UIKit0,项目名称:digikam,代码行数:19,代码来源:batchfacedetector.cpp

示例4: handleRelease


//.........这里部分代码省略.........
                    if(xml.name() == "artist"){
                        //QString name;QString role;
                        Artist a;
                        while(xml.readNextStartElement()){
                            if(xml.name() == "name"){
                                a.setName( xml.readElementText() );
                            }else if(xml.name() == "role"){
                                a.setRole( xml.readElementText() );
                            }else{
                                xml.skipCurrentElement();
                            }
                            Artists.append(a);
                        }
                        //qDebug()<<role+": "+name;
                        //album.roles.append( role+": "+name );
                    }else{
                        xml.skipCurrentElement();
                    }
                }
            }
            if(xml.name() == "formats"){
                while(xml.readNextStartElement()){
                    if( xml.name()=="format" && xml.attributes().hasAttribute("name") ){
                        QString sep=", ";
                        if(album.format().isEmpty()){
                            sep="";
                        }
                        album.setFormat( album.format() + sep + xml.attributes().value("name").toString() );
                    }else{
                        xml.skipCurrentElement();
                    }
                }
            }
            if(xml.name() == "title"){
                album.setTitle( xml.readElementText() );
            }
            if(xml.name() == "labels"){
                xml.readNext();
                while(xml.name()=="label"){
                    if( xml.attributes().hasAttribute("name") ){
                        QString sep=", ";
                        if(album.label().isEmpty()){
                            sep="";
                        }
                        album.setLabel( album.label()+sep+xml.attributes().value("name").toString() );
                    }
                    xml.readNext();
                }
            }
            if(xml.name() == "genres"){
                while(xml.readNextStartElement()){
                    if(xml.name() == "genre"){
                        QString sep=", ";
                        if(album.genre().isEmpty()){
                            sep="";
                        }
                        album.setGenre( album.genre() + sep + xml.readElementText() );
                    }else{
                        xml.skipCurrentElement();
                    }
                }
            }
            if(xml.name() == "styles"){
                while(xml.readNextStartElement()){
                    if(xml.name() == "style"){
                        QString sep=", ";
开发者ID:ivareske,项目名称:TagEditor,代码行数:67,代码来源:Discogs.cpp


注:本文中的Album::title方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。