Skip to content
Snippets Groups Projects
Select Git revision
  • d2b83ee735dea36fd1f491f4d84d79e6d88472f4
  • master default protected
  • 1.3.1
  • 1.3.0
  • 1.2.0
  • 1.1.5
  • 1.1.4
  • 1.1.3
  • 1.1.2
  • 1.1.1
  • 1.1.0
  • 1.0.19
  • 1.0.18
  • 1.0.17
  • 1.0.16
  • 1.0.15
  • 1.0.14
  • 1.0.13
  • 1.0.12
  • 1.0.10
  • 1.0.9
  • 1.0.8
22 results

Homework.js

Blame
  • Forked from KSZK / DevTeam / kszkepzes / old / kszkepzes-frontend
    Source project has a limited visibility.
    browser.cpp 731 B
    #include "browser.h"
    
    Browser::Browser(QQuickItem* parent) : QQuickItem(parent)
    {
    //    QDir newDirectory(path);
    //    currentDirectory = newDirectory;
    //    ListDir();
    }
    
    void Browser::ChDir(QString relPath)
    {
        QDir newDirectory(currentDirectory.currentPath() + relPath);
        currentDirectory = newDirectory;
        ListDir();
    }
    
    void Browser::ListDir()
    {
        this->currentDirectory.setFilter(QDir::Dirs);
        this->currentDirectory.setSorting(QDir::Name);
        subdirs.clear();
        subdirs += this->currentDirectory.entryList();
        this->currentDirectory.setFilter(QDir::Files);
        QStringList filter;
        filter << ".qt4";
        this->currentDirectory.setNameFilters(filter);
        subdirs += this->currentDirectory.entryList();
    }