diff --git a/Richard_photoList/Richard_photoList.pro.user b/Richard_photoList/Richard_photoList.pro.user index d244033..84210d5 100644 --- a/Richard_photoList/Richard_photoList.pro.user +++ b/Richard_photoList/Richard_photoList.pro.user @@ -1,14 +1,10 @@ -<<<<<<< HEAD - -======= - ->>>>>>> FETCH_HEAD + EnvironmentId - {f0de3c19-7390-432f-8215-71267a77c807} + {db3e1557-086a-4178-9b2c-c4af1acd9f93} ProjectExplorer.Project.ActiveTarget @@ -62,14 +58,14 @@ ProjectExplorer.Project.Target.0 - Desktop Qt 5.3 MSVC2010 OpenGL 32bit - Desktop Qt 5.3 MSVC2010 OpenGL 32bit - qt.53.win32_msvc2010_opengl_kit + Desktop Qt 5.3 clang 64bit + Desktop Qt 5.3 clang 64bit + qt.53.clang_64_kit 0 0 0 - C:/Jesse/groundstation/build-Richard_photoList-Desktop_Qt_5_3_MSVC2010_OpenGL_32bit-Debug + /Users/richardyu/Dropbox/build-Richard_photoList-Desktop_Qt_5_3_clang_64bit-Debug true @@ -86,7 +82,10 @@ Make Qt4ProjectManager.MakeStep - + + -w + -r + false @@ -102,7 +101,10 @@ Make Qt4ProjectManager.MakeStep - + + -w + -r + true clean @@ -122,7 +124,7 @@ true - C:/Jesse/groundstation/build-Richard_photoList-Desktop_Qt_5_3_MSVC2010_OpenGL_32bit-Release + /Users/richardyu/Dropbox/build-Richard_photoList-Desktop_Qt_5_3_clang_64bit-Release true @@ -139,7 +141,10 @@ Make Qt4ProjectManager.MakeStep - + + -w + -r + false @@ -155,7 +160,10 @@ Make Qt4ProjectManager.MakeStep - + + -w + -r + true clean @@ -227,8 +235,8 @@ 2 Richard_photoList - - Qt4ProjectManager.Qt4RunConfiguration:C:/Jesse/groundstation/Richard_photoList/Richard_photoList.pro + Richard_photoList2 + Qt4ProjectManager.Qt4RunConfiguration:/Users/richardyu/Documents/groundstation/Richard_photoList/Richard_photoList.pro Richard_photoList.pro false diff --git a/Richard_photoList/mainwindow.cpp b/Richard_photoList/mainwindow.cpp index aa883dd..98de8eb 100644 --- a/Richard_photoList/mainwindow.cpp +++ b/Richard_photoList/mainwindow.cpp @@ -31,7 +31,7 @@ MainWindow::MainWindow(QWidget *parent) : // I want to display 100 rows of pictures // each row contains 8 columns; const int rows = 100; - const int columns = 4; + const int columns = 6; dir = new QDir("/Users/richardyu/Pictures/photolist"); QStringList filters; @@ -51,7 +51,6 @@ MainWindow::MainWindow(QWidget *parent) : // for every row, display each column in the current row for (int k = 0; k < rows; k=k+2) { for (int j = 0; j < columns; j++) { -<<<<<<< HEAD // When all files in the directory are added to the screen // Jump out of the loop using 'goto' @@ -61,9 +60,6 @@ MainWindow::MainWindow(QWidget *parent) : QFileInfo fileinfo = list.at(listCount); auto int index = k*columns + j; -======= - /*auto*/ int index = k*columns + j; ->>>>>>> FETCH_HEAD imageLabel[index] = new QLabel(); imageName[index] = new QLabel(); imageMap[index] = new QPixmap(fileinfo.absoluteFilePath()); @@ -114,8 +110,6 @@ MainWindow::~MainWindow() delete ui; } - - void MainWindow::on_hideImage_released() { clearImage(); @@ -157,7 +151,7 @@ void MainWindow::addImage() { // for every row, display each column in the current row for (int k = 0; k < rows; k++) { for (int j = 0; j < columns; j++) { - /*auto*/ int index = k*columns + j; + auto int index = k*columns + j; imageLabel[index] = new QLabel(); imageMap[index] = new QPixmap("/Users/richardyu/Pictures/conduct.png"); imageLabel[index]->setPixmap(imageMap[index] ->scaled(w,h,Qt::KeepAspectRatioByExpanding));